Class: LessCurse::Geometry::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/less_curse/geometry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ Point

Returns a new instance of Point.



5
6
7
# File 'lib/less_curse/geometry.rb', line 5

def initialize(x, y)
  @x, @y = x, y
end

Instance Attribute Details

#xObject

Returns the value of attribute x.



4
5
6
# File 'lib/less_curse/geometry.rb', line 4

def x
  @x
end

#yObject

Returns the value of attribute y.



4
5
6
# File 'lib/less_curse/geometry.rb', line 4

def y
  @y
end