Module: Ccp::Commands::Executable

Defined in:
lib/ccp/commands/executable.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/ccp/commands/executable.rb', line 4

def self.included(base)
  base.class_eval do
    def self.execute(options = {})
      c = new
      c.receiver = options.delete(:receiver)
      c.receiver.parse!(options)
      c.receiver.execute(c)
      return c
    end
  end
end

Instance Method Details

#executeObject

Command



18
19
# File 'lib/ccp/commands/executable.rb', line 18

def execute
end