Module: Songbirdsh::Command::ClassMethods
- Defined in:
- lib/songbirdsh/command.rb
Instance Method Summary collapse
Instance Method Details
#execute(&block) ⇒ Object
30 31 32 |
# File 'lib/songbirdsh/command.rb', line 30 def execute &block define_method :execute, block end |
#help(help) ⇒ Object
26 27 28 |
# File 'lib/songbirdsh/command.rb', line 26 def help help define_method(:help) { help } end |
#usage(usage) ⇒ Object
22 23 24 |
# File 'lib/songbirdsh/command.rb', line 22 def usage usage define_method(:usage) { usage } end |