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.
253 254 |
# File 'docs/000_a_root.rb', line 253 def initialize(x, y) end |
Instance Attribute Details
#x ⇒ Integer (readonly)
Get the x coodinate
249 250 251 |
# File 'docs/000_a_root.rb', line 249 def x @x end |
#y ⇒ Integer (readonly)
Get the y coordinate
252 253 254 |
# File 'docs/000_a_root.rb', line 252 def y @y end |