Method: CommandTree::Command#initialize
- Defined in:
- lib/command_tree/command.rb
#initialize(prefix, name, options = {}, &block) ⇒ Command
Returns a new instance of Command.
6 7 8 9 10 11 |
# File 'lib/command_tree/command.rb', line 6 def initialize(prefix, name, = {}, &block) @prefix = prefix @name = name @desc = [:desc] @block = block end |