Class: OpenShip::Position

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

Instance Attribute Summary collapse

Instance Attribute Details

#xObject

Returns the value of attribute x.



18
19
20
# File 'lib/open-ship/sortr.rb', line 18

def x
  @x
end

#yObject

Returns the value of attribute y.



18
19
20
# File 'lib/open-ship/sortr.rb', line 18

def y
  @y
end

#zObject

Returns the value of attribute z.



18
19
20
# File 'lib/open-ship/sortr.rb', line 18

def z
  @z
end