Class: Binpack::UnrotatableItem
- Inherits:
-
Object
- Object
- Binpack::UnrotatableItem
- Defined in:
- lib/binpack.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(obj, width, height) ⇒ UnrotatableItem
constructor
A new instance of UnrotatableItem.
Constructor Details
#initialize(obj, width, height) ⇒ UnrotatableItem
Returns a new instance of UnrotatableItem.
7 8 9 |
# File 'lib/binpack.rb', line 7 def initialize(obj, width, height) @obj, @width, @height = obj, width, height end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
5 6 7 |
# File 'lib/binpack.rb', line 5 def height @height end |
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
5 6 7 |
# File 'lib/binpack.rb', line 5 def obj @obj end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
5 6 7 |
# File 'lib/binpack.rb', line 5 def width @width end |