Class: Configs::Project::Display::Point
- Defined in:
- scripts/00021 ProjectConfig.rb
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.
47 48 49 50 |
# File 'scripts/00021 ProjectConfig.rb', line 47 def initialize(x, y) @x = x @y = y end |