Module: PluginAdapter

Included in:
WikiPluginAdapter
Defined in:
lib/lyrics/cli/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/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

#notify(message) ⇒ Object



52
53
54
# File 'lib/lyrics/cli/pluginadapter.rb', line 52

def notify( message )
	self.class.notify( message )
end

#plugin_nameObject



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

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