Class: CommandLion::Command
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(&block) ⇒ Command
constructor
A new instance of Command.
Methods inherited from Base
build, key_value, simple_attr, simple_attrs
Constructor Details
#initialize(&block) ⇒ Command
Returns a new instance of Command.
10 11 12 |
# File 'lib/command_lion/command.rb', line 10 def initialize(&block) self.instance_eval(&block) if block_given? end |