Class: Configs::Project::Display::Point
Overview
Data structure describing a point
Instance Attribute Summary collapse
-
#x ⇒ Integer
readonly
Get the x coodinate.
-
#y ⇒ Integer
readonly
Get the y coordinate.
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.
146 147 |
# File 'docs/000_a_root.rb', line 146 def initialize(x, y) end |
Instance Attribute Details
#x ⇒ Integer (readonly)
Get the x coodinate
142 143 144 |
# File 'docs/000_a_root.rb', line 142 def x @x end |
#y ⇒ Integer (readonly)
Get the y coordinate
145 146 147 |
# File 'docs/000_a_root.rb', line 145 def y @y end |