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/project.rb,
lib/ruber/version.rb,
lib/ruber/world/world.rb,
lib/ruber/config/config.rb,
lib/ruber/output_widget.rb,
lib/ruber/editor/document.rb,
lib/ruber/project_backend.rb,
lib/ruber/settings_dialog.rb,
lib/ruber/document_project.rb,
lib/ruber/component_manager.rb,
lib/ruber/exception_widgets.rb,
lib/ruber/world/environment.rb,
lib/ruber/world/hint_solver.rb,
lib/ruber/editor/editor_view.rb,
lib/ruber/gui_states_handler.rb,
lib/ruber/settings_container.rb,
lib/ruber/world/project_list.rb,
lib/ruber/project_dir_scanner.rb,
lib/ruber/world/document_list.rb,
lib/ruber/yaml_option_backend.rb,
lib/ruber/plugin_specification.rb,
lib/ruber/main_window/workspace.rb,
lib/ruber/world/project_factory.rb,
lib/ruber/filtered_output_widget.rb,
lib/ruber/main_window/status_bar.rb,
lib/ruber/world/document_factory.rb,
lib/ruber/application/application.rb,
lib/ruber/external_program_plugin.rb,
lib/ruber/main_window/main_window.rb,
lib/ruber/settings_dialog_manager.rb,
lib/ruber/kde_config_option_backend.rb,
lib/ruber/editor/ktexteditor_wrapper.rb,
lib/ruber/world/project_files_widget.rb,
lib/ruber/plugin_specification_reader.rb,
lib/ruber/main_window/choose_plugins_dlg.rb,
lib/ruber/main_window/main_window_actions.rb,
lib/ruber/main_window/output_color_widget.rb,
lib/ruber/main_window/main_window_internal.rb,
lib/ruber/main_window/save_modified_files_dlg.rb,
lib/ruber/main_window/open_file_in_project_dlg.rb

Overview

Copyright © 2010 by Stefano Crocco

[email protected]   

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, Extension, GuiStatesHandler, KTextEditorWrapper, PluginLike, SettingsContainer, World 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, ProjectFilesRuleChooser, ProjectFilesWidget, SaveModifiedFilesDlg, SettingsDialog, SettingsDialogManager, StatusBar, Workspace, YamlSettingsBackend

Constant Summary collapse

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

.[](feature) ⇒ PluginLike?

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