Method: Filigree::Commands::ClassMethods#command
- Defined in:
- lib/filigree/commands.rb
#command(str, &block) ⇒ void
This method returns an undefined value.
Add a new command to the class. All command code is executed in the context of the Commands object.
98 99 100 101 102 103 104 |
# File 'lib/filigree/commands.rb', line 98 def command(str, &block) add_command Command.new(str, @help_string, @param_docs, @config, block) @help_string = '' @param_docs = Array.new @config = nil end |