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

Instance Method Summary collapse

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 add_custom_checkeable_menu_item( menu_item, checked )
	self.class.add_custom_checkeable_menu_item( menu_item, checked )
end

#add_custom_menu_item(menu_item) ⇒ Object



82
83
84
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 82

def add_custom_menu_item( menu_item )
	self.class.add_custom_menu_item( menu_item )
end

#configureObject



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( message )
	self.class.notify( message )
end

#on_quitObject



101
102
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 101

def on_quit()
end

#on_startObject



98
99
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 98

def on_start()
end

#plugin_nameObject



48
49
50
# File 'lib/wiki_lyrics/cli/pluginadapter.rb', line 48

def plugin_name()
	return self.class.plugin_name()
end


78
79
80
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 78

def popup( message )
	self.class.popup( message )
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 remove_custom_checkeable_menu_item( menu_item )
	self.class.remove_custom_checkeable_menu_item( menu_item )
end

#remove_custom_menu_item(menu_item) ⇒ Object



86
87
88
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 86

def remove_custom_menu_item( menu_item )
	self.class.remove_custom_menu_item( menu_item )
end

#write_config(config_file) ⇒ Object



110
111
# File 'lib/wiki_lyrics/amarok/pluginadapter.rb', line 110

def write_config( config_file )
end