Class: Gingham::Position
- Inherits:
-
Object
- Object
- Gingham::Position
- Defined in:
- lib/gingham/position.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
-
#z ⇒ Object
Returns the value of attribute z.
Instance Method Summary collapse
-
#initialize(x, y, z) ⇒ Position
constructor
A new instance of Position.
Constructor Details
#initialize(x, y, z) ⇒ Position
Returns a new instance of Position.
5 6 7 |
# File 'lib/gingham/position.rb', line 5 def initialize(x, y, z) @x, @y, @z = x, y, z end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x.
3 4 5 |
# File 'lib/gingham/position.rb', line 3 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
3 4 5 |
# File 'lib/gingham/position.rb', line 3 def y @y end |
#z ⇒ Object
Returns the value of attribute z.
3 4 5 |
# File 'lib/gingham/position.rb', line 3 def z @z end |