Method: Rodish::DSL.command
- Defined in:
- lib/rodish/dsl.rb
.command(command_path, &block) ⇒ Object
Create a new command with the given path and evaluate the given block in the context of a new instance using that command.
19 20 21 22 23 |
# File 'lib/rodish/dsl.rb', line 19 def self.command(command_path, &block) command = self::Command.new(command_path) new(command).instance_exec(&block) if block command end |