Class: Ccp::Commands::Composite::CommandClass

Inherits:
Struct
  • Object
show all
Defined in:
lib/ccp/commands/composite.rb,
lib/ccp/commands/composite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



12
13
14
# File 'lib/ccp/commands/composite.rb', line 12

def args
  @args
end

#condObject

Returns the value of attribute cond

Returns:

  • (Object)

    the current value of cond



12
13
14
# File 'lib/ccp/commands/composite.rb', line 12

def cond
  @cond
end

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



12
13
14
# File 'lib/ccp/commands/composite.rb', line 12

def klass
  @klass
end

Instance Method Details

#inspectObject



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

def inspect
  name = klass.name.split(/Commands::/,2).last
  "<%s args=%s cond=%s>" % [name, args.inspect, cond.inspect]
end

#to_sObject



19
20
21
# File 'lib/ccp/commands/composite.rb', line 19

def to_s
  inspect
end