Class: CommandLion::Command

Inherits:
Base
  • Object
show all
Defined in:
lib/command_lion/command.rb

Direct Known Subclasses

Option

Instance Method Summary collapse

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