module Ccp::Commands::Executable

Public Class Methods

execute(options = {}) click to toggle source
# File lib/ccp/commands/executable.rb, line 6
def self.execute(options = {})
  c = new
  c.receiver = options.delete(:receiver)
  c.receiver.parse!(options)
  c.receiver.execute(c)
  return c
end
included(base) click to toggle source
# 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

Public Instance Methods

execute() click to toggle source

Command

# File lib/ccp/commands/executable.rb, line 18
def execute
end