Class: Point
- Inherits:
-
Struct
- Object
- Struct
- Point
- Defined in:
- lib/point.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x
1 2 3 |
# File 'lib/point.rb', line 1 def x @x end |
#y ⇒ Object
Returns the value of attribute y
1 2 3 |
# File 'lib/point.rb', line 1 def y @y end |