Module: Ccp::Commands::Core

Includes:
Commentable, Executable, Receivable
Included in:
Base, Composite
Defined in:
lib/ccp/commands/core.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Executable

#execute

Methods included from Commentable

#MEMO, #TODO

Methods included from Receivable

#receiver, #receiver=

Class Method Details

.included(base) ⇒ Object



8
9
10
11
12
# File 'lib/ccp/commands/core.rb', line 8

def self.included(base)
  base.class_eval do
    extend ClassMethods
  end
end

Instance Method Details

#inspectObject



14
15
16
17
# File 'lib/ccp/commands/core.rb', line 14

def inspect
  klass_name = self.class.name.to_s.split(/::/).last
  "#<#{klass_name}>"
end