Class: Configs::Project::Display::Point

Inherits:
Object
  • Object
show all
Defined in:
docs/000_a_root.rb

Overview

Data structure describing a point

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#xInteger (readonly)

Get the x coodinate

Returns:

  • (Integer)


249
250
251
# File 'docs/000_a_root.rb', line 249

def x
  @x
end

#yInteger (readonly)

Get the y coordinate

Returns:

  • (Integer)


252
253
254
# File 'docs/000_a_root.rb', line 252

def y
  @y
end