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.



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

Returns:

  • (Integer)


142
143
144
# File 'docs/000_a_root.rb', line 142

def x
  @x
end

#y ⇒ Integer (readonly)

Get the y coordinate

Returns:

  • (Integer)


145
146
147
# File 'docs/000_a_root.rb', line 145

def y
  @y
end