Method: Ccp::Invokers::Base.execute

Defined in:
lib/ccp/invokers/base.rb

.execute(options = {}, &block) ⇒ Object

Class Methods



23
24
25
26
27
28
# File 'lib/ccp/invokers/base.rb', line 23

def self.execute(options = {}, &block)
  cmd = new(options)
  cmd.instance_eval(&block) if block_given?
  cmd.receiver.execute(cmd)
  return cmd
end