Class: Ruber::YAMLSyntaxChecker::Plugin

Inherits:
Plugin show all
Defined in:
plugins/yaml_syntax_checker/yaml_syntax_checker.rb,
plugins/yaml_syntax_checker/yaml_syntax_checker.rb,
plugins/yaml_syntax_checker/yaml_syntax_checker.rb

Constant Summary

Constants inherited from Plugin

LICENSES

Instance Attribute Summary

Attributes included from PluginLike

plugin_description

Instance Method Summary (collapse)

Methods inherited from Plugin

#about_data

Methods included from PluginLike

#add_extensions_to_project, #add_options_to_project, #add_widgets_to_project, #create_tool_widget, #delayed_initialize, #initialize_plugin, #load_settings, #plugin_name, #query_close, #register_options, #register_with_project, #remove_extensions_from_project, #remove_from_project, #remove_options_from_project, #remove_widgets_from_project, #restore_session, #save_settings, #session_data, #setup_action, #setup_actions, #shutdown, #update_project

Constructor Details

- (Plugin) initialize(psf)

A new instance of Plugin



27
28
29
30
31
# File 'plugins/yaml_syntax_checker/yaml_syntax_checker.rb', line 27

def initialize psf
  super
  Ruber[:syntax_checker].register_syntax_checker YAMLSyntaxChecker::Checker,
      [], ['*.yaml']
end

Instance Method Details

- (Object) unload



35
36
37
# File 'plugins/yaml_syntax_checker/yaml_syntax_checker.rb', line 35

def unload
  Ruber[:syntax_checker].remove_syntax_checker YAMLSyntaxChecker::Checker
end