Class: Thing

Inherits:
Object
  • Object
show all
Defined in:
lib/alpha_simprini/packer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeThing

Returns a new instance of Thing.



133
134
135
# File 'lib/alpha_simprini/packer.rb', line 133

def initialize
  @ace, @b, @c, @t = nil, nil, nil, nil
end

Instance Attribute Details

#aceObject

Returns the value of attribute ace.



131
132
133
# File 'lib/alpha_simprini/packer.rb', line 131

def ace
  @ace
end

#bObject

Returns the value of attribute b.



131
132
133
# File 'lib/alpha_simprini/packer.rb', line 131

def b
  @b
end

#cObject

Returns the value of attribute c.



131
132
133
# File 'lib/alpha_simprini/packer.rb', line 131

def c
  @c
end

#tObject

Returns the value of attribute t.



131
132
133
# File 'lib/alpha_simprini/packer.rb', line 131

def t
  @t
end

Instance Method Details

#inspectObject



137
138
139
# File 'lib/alpha_simprini/packer.rb', line 137

def inspect
  "<#Thing:#{object_id} a:#{ace.size} things b:#{b.inspect} c:#{c.inspect} t:<#Thing:#{t.to_s}> >"
end