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



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

def args
  @args
end

#condObject

Returns the value of attribute cond

Returns:

  • (Object)

    the current value of cond



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

def cond
  @cond
end

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



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

def klass
  @klass
end

Instance Method Details

#inspectObject



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

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

#to_sObject



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

def to_s
  inspect
end