Module: Operate::Command::ClassMethods
- Defined in:
- lib/operate/command.rb
Instance Method Summary collapse
-
#call(*args, &block) ⇒ Object
Call will initialize the class with *args and invoke
callwith no parameters.
Instance Method Details
#call(*args, &block) ⇒ Object
Call will initialize the class with *args and invoke call with no parameters.
19 20 21 22 23 |
# File 'lib/operate/command.rb', line 19 def call(*args, &block) command = new(*args) command.evaluate(&block) if block_given? command.call end |