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