Method: Command::CommandSet.define_commands
- Defined in:
- lib/command-set/command-set.rb
.define_commands(&block) ⇒ Object
The preferred way to use a CommandSet is to call CommandSet::define_commands with a block, and then call #command, #include_commands and #sub_command on it.
186 187 188 189 190 |
# File 'lib/command-set/command-set.rb', line 186 def define_commands(&block) set = self.new set.define_commands(&block) return set end |