Module: PluginAdapter
- Included in:
- WikiPluginAdapter
- Defined in:
- lib/wiki_lyrics/cli/pluginadapter.rb,
lib/wiki_lyrics/amarok/pluginadapter.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(including) ⇒ Object
Hack to make module methods become class methods when the module gets included.
Instance Method Summary collapse
- #add_custom_checkeable_menu_item(menu_item, checked) ⇒ Object
- #add_custom_menu_item(menu_item) ⇒ Object
- #configure ⇒ Object
- #notify(message) ⇒ Object
- #on_quit ⇒ Object
- #on_start ⇒ Object
- #plugin_name ⇒ Object
- #popup(message) ⇒ Object
- #read_config(config_file) ⇒ Object
- #remove_custom_checkeable_menu_item(menu_item) ⇒ Object
- #remove_custom_menu_item(menu_item) ⇒ Object
- #write_config(config_file) ⇒ Object
Class Method Details
.included(including) ⇒ Object
Hack to make module methods become class methods when the module gets included
24 25 26 27 28 29 30 |
# File 'lib/wiki_lyrics/cli/pluginadapter.rb', line 24 def PluginAdapter.included( including ) if including.is_a?( Class ) including.extend( ClassMethods ) # adds class methods else # if including.is_a?( Module ) including::ClassMethods.append_class_methods( self ) end end |
Instance Method Details
#add_custom_checkeable_menu_item(menu_item, checked) ⇒ Object
90 91 92 |
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 90 def ( , checked ) self.class.( , checked ) end |
#add_custom_menu_item(menu_item) ⇒ Object
82 83 84 |
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 82 def ( ) self.class.( ) end |
#configure ⇒ Object
104 105 |
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 104 def configure() end |
#notify(message) ⇒ Object
52 53 54 |
# File 'lib/wiki_lyrics/cli/pluginadapter.rb', line 52 def notify( ) self.class.notify( ) end |
#on_quit ⇒ Object
101 102 |
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 101 def on_quit() end |
#on_start ⇒ Object
98 99 |
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 98 def on_start() end |
#plugin_name ⇒ Object
48 49 50 |
# File 'lib/wiki_lyrics/cli/pluginadapter.rb', line 48 def plugin_name() return self.class.plugin_name() end |
#popup(message) ⇒ Object
78 79 80 |
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 78 def popup( ) self.class.popup( ) end |
#read_config(config_file) ⇒ Object
107 108 |
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 107 def read_config( config_file ) end |
#remove_custom_checkeable_menu_item(menu_item) ⇒ Object
94 95 96 |
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 94 def ( ) self.class.( ) end |
#remove_custom_menu_item(menu_item) ⇒ Object
86 87 88 |
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 86 def ( ) self.class.( ) end |
#write_config(config_file) ⇒ Object
110 111 |
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 110 def write_config( config_file ) end |