Module: PluginAdapter::ClassMethods
- Defined in:
- lib/lyrics/cli/pluginadapter.rb
Overview
Methods under this module will became class methods when the module gets included Note: don’t use def self.<method name> but just <method name>
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.append_class_methods(mod) ⇒ Object
35 36 37 |
# File 'lib/lyrics/cli/pluginadapter.rb', line 35 def ClassMethods.append_class_methods( mod ) include mod::ClassMethods end |
Instance Method Details
#notify(message) ⇒ Object
43 44 45 |
# File 'lib/lyrics/cli/pluginadapter.rb', line 43 def notify( ) puts plugin_name() + ": " + .gsub( /\/?<[^>]+>/, "" ) end |
#plugin_name ⇒ Object
39 40 41 |
# File 'lib/lyrics/cli/pluginadapter.rb', line 39 def plugin_name() return site_name() end |