Module: Ruber

Defined in:
lib/ruber/plugin_like.rb,
lib/ruber/pane.rb,
lib/ruber/utils.rb,
lib/ruber/utils.rb,
lib/ruber/plugin.rb,
lib/ruber/version.rb,
plugins/rake/rake.rb,
lib/ruber/project.rb,
plugins/state/state.rb,
plugins/rspec/rspec.rb,
lib/ruber/world/world.rb,
plugins/command/output.rb,
lib/ruber/config/config.rb,
plugins/command/command.rb,
lib/ruber/output_widget.rb,
plugins/rake/rake_widgets.rb,
plugins/autosave/autosave.rb,
lib/ruber/editor/document.rb,
plugins/auto_end/auto_end.rb,
lib/ruber/project_backend.rb,
lib/ruber/settings_dialog.rb,
lib/ruber/document_project.rb,
lib/ruber/component_manager.rb,
lib/ruber/world/hint_solver.rb,
lib/ruber/exception_widgets.rb,
plugins/rake/rake_extension.rb,
lib/ruber/world/environment.rb,
lib/ruber/world/project_list.rb,
lib/ruber/settings_container.rb,
lib/ruber/editor/editor_view.rb,
lib/ruber/gui_states_handler.rb,
lib/ruber/yaml_option_backend.rb,
lib/ruber/world/document_list.rb,
lib/ruber/plugin_specification.rb,
lib/ruber/world/project_factory.rb,
lib/ruber/main_window/workspace.rb,
plugins/ruby_runner/ruby_runner.rb,
lib/ruber/main_window/status_bar.rb,
lib/ruber/world/document_factory.rb,
lib/ruber/filtered_output_widget.rb,
lib/ruber/external_program_plugin.rb,
lib/ruber/application/application.rb,
lib/ruber/settings_dialog_manager.rb,
lib/ruber/main_window/main_window.rb,
plugins/ruby_runner/config_widget.rb,
plugins/ruby_runner/project_widget.rb,
lib/ruber/kde_config_option_backend.rb,
plugins/find_in_files/find_in_files.rb,
plugins/rspec/ruber_rspec_formatter.rb,
lib/ruber/editor/ktexteditor_wrapper.rb,
plugins/syntax_checker/syntax_checker.rb,
lib/ruber/plugin_specification_reader.rb,
plugins/project_browser/project_browser.rb,
plugins/find_in_files/find_in_files_dlg.rb,
lib/ruber/application/project_files_list.rb,
lib/ruber/main_window/choose_plugins_dlg.rb,
plugins/ruby_development/ruby_development.rb,
lib/ruber/main_window/output_color_widget.rb,
lib/ruber/main_window/main_window_actions.rb,
lib/ruber/application/project_files_widget.rb,
lib/ruber/main_window/main_window_internal.rb,
plugins/find_in_files/find_in_files_widgets.rb,
lib/ruber/main_window/save_modified_files_dlg.rb,
lib/ruber/main_window/open_file_in_project_dlg.rb,
plugins/syntax_checker/syntax_checker.rb,
plugins/yaml_syntax_checker/yaml_syntax_checker.rb,
lib/ruber/world/project_files_list.rb,
lib/ruber/world/project_files_widget.rb,
plugins/ruby_syntax_checker/ruby_syntax_checker.rb,
plugins/yaml_syntax_checker/yaml_syntax_checker.rb,
plugins/rspec/tool_widget.rb,
lib/ruber/project_dir_scanner.rb,
plugins/irb/irb.rb,
lib/ruber/project.rb,
plugins/ruberri/search.rb,
plugins/ruberri/ruberri.rb,
plugins/irb/irb_controller.rb,
lib/ruber/project_dir_scanner.rb,
plugins/ruberri/class_formatter.rb,
plugins/ruberri/method_formatter.rb,
plugins/irb/irb.rb

Overview

Copyright © 2011 by Stefano Crocco stefano.crocco@alice.it

This program is free software; you can redistribute it andor modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place – Suite 330, Boston, MA 02111-1307, USA.

Defined Under Namespace

Modules: Activable, AutoEnd, Autosave, CommandPlugin, Extension, FilesRunner, FindInFiles, GuiStatesHandler, IRB, KTextEditorWrapper, PluginLike, ProjectBrowser, RI, RSpec, Rake, RubyRunner, RubySyntaxChecker, SettingsContainer, State, SyntaxChecker, World, YAMLSyntaxChecker Classes: AbstractProject, AnnotationModel, Application, ChoosePluginsDlg, ChoosePluginsWidget, ComponentLoadingErrorDialog, ComponentManager, ConfigManager, Document, DocumentProject, EditorView, ExceptionDialog, ExternalProgramPlugin, FilteredOutputWidget, GuiPlugin, KDEConfigSettingsBackend, MainWindow, MainWindowSettingsWidget, NewProjectDialog, OpenFileInProjectDlg, OutputColorWidget, OutputWidget, Pane, Plugin, PluginSpecification, PluginSpecificationReader, Project, ProjectBackend, ProjectConfigWidget, ProjectDialog, ProjectDirScanner, ProjectFiles, ProjectFilesList, ProjectFilesRuleChooser, ProjectFilesWidget, SaveModifiedFilesDlg, SettingsDialog, SettingsDialogManager, StatusBar, Workspace, YamlSettingsBackend

Constant Summary

RUBER_DIR =

The Ruber installation directory

File.expand_path File.join(__FILE__, '..', '..', '..')
RUBER_LIB_DIR =

The directory where the Ruber core files are

File.join RUBER_DIR, 'lib/'
RUBER_PLUGIN_DIR =

The default directory for globally installed plugins

File.join RUBER_DIR, 'plugins'
RUBER_DATA_DIR =

The Ruber data directory

File.join RUBER_DIR, 'data'
VERSION =
'0.0.10'

Class Method Summary (collapse)

Class Method Details

+ (PluginLike?) [](feature)

The component providing a feature

Parameters:

  • feature (Symbol)

    the feature the component should provide

Returns:

  • (PluginLike, nil)

    the component providing the given feature or nil if no components provide it

Raises:

  • (NoMethodError)

    if called before the application is created



43
44
45
46
# File 'lib/ruber/application/application.rb', line 43

def self.[](feature)
# This instance variable is initialized by the application's constructor
  @components[feature]
end