Class: Point
- Inherits:
-
Object
- Object
- Point
- Defined in:
- lib/zarchitect/image.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(x, y) ⇒ Point
Returns a new instance of Point.
157 158 159 160 |
# File 'lib/zarchitect/image.rb', line 157 def initialize(x, y) @x = x @y = y end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x.
155 156 157 |
# File 'lib/zarchitect/image.rb', line 155 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
155 156 157 |
# File 'lib/zarchitect/image.rb', line 155 def y @y end |