Class: OpenShip::BoxPosition
- Inherits:
-
Object
- Object
- OpenShip::BoxPosition
- Defined in:
- lib/open-ship/sortr.rb
Instance Attribute Summary collapse
-
#box ⇒ Object
Returns the value of attribute box.
-
#position ⇒ Object
Returns the value of attribute position.
Instance Method Summary collapse
Instance Attribute Details
#box ⇒ Object
Returns the value of attribute box.
8 9 10 |
# File 'lib/open-ship/sortr.rb', line 8 def box @box end |
#position ⇒ Object
Returns the value of attribute position.
8 9 10 |
# File 'lib/open-ship/sortr.rb', line 8 def position @position end |
Instance Method Details
#get_relative_space ⇒ Object
10 11 12 |
# File 'lib/open-ship/sortr.rb', line 10 def get_relative_space self.box.get_space(:relative_position => self.position) end |