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



10
11
12
# File 'lib/ccp/commands/composite.rb', line 10

def args
  @args
end

#condObject

Returns the value of attribute cond

Returns:

  • (Object)

    the current value of cond



10
11
12
# File 'lib/ccp/commands/composite.rb', line 10

def cond
  @cond
end

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



10
11
12
# File 'lib/ccp/commands/composite.rb', line 10

def klass
  @klass
end

Instance Method Details

#inspectObject



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

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

#to_sObject



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

def to_s
  inspect
end