Class: Thing
- Inherits:
-
Object
- Object
- Thing
- Defined in:
- lib/alpha_simprini/packer.rb
Instance Attribute Summary collapse
-
#ace ⇒ Object
Returns the value of attribute ace.
-
#b ⇒ Object
Returns the value of attribute b.
-
#c ⇒ Object
Returns the value of attribute c.
-
#t ⇒ Object
Returns the value of attribute t.
Instance Method Summary collapse
-
#initialize ⇒ Thing
constructor
A new instance of Thing.
- #inspect ⇒ Object
Constructor Details
#initialize ⇒ Thing
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
#ace ⇒ Object
Returns the value of attribute ace.
131 132 133 |
# File 'lib/alpha_simprini/packer.rb', line 131 def ace @ace end |
#b ⇒ Object
Returns the value of attribute b.
131 132 133 |
# File 'lib/alpha_simprini/packer.rb', line 131 def b @b end |
#c ⇒ Object
Returns the value of attribute c.
131 132 133 |
# File 'lib/alpha_simprini/packer.rb', line 131 def c @c end |
#t ⇒ Object
Returns the value of attribute t.
131 132 133 |
# File 'lib/alpha_simprini/packer.rb', line 131 def t @t end |
Instance Method Details
#inspect ⇒ Object
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 |