Class: OpenShip::BoxPosition

Inherits:
Object
  • Object
show all
Defined in:
lib/open-ship/sortr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#boxObject

Returns the value of attribute box.



8
9
10
# File 'lib/open-ship/sortr.rb', line 8

def box
  @box
end

#positionObject

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_spaceObject



10
11
12
# File 'lib/open-ship/sortr.rb', line 10

def get_relative_space
  self.box.get_space(:relative_position => self.position)
end