class PREP::Core::Point
Attributes
x[R]
y[R]
Public Class Methods
new(x, y)
click to toggle source
# File lib/core/point.rb, line 11 def initialize(x, y) self.x, self.y = x, y end
Public Instance Methods
x=(v)
click to toggle source
# File lib/core/point.rb, line 15 def x=(v) raise "x cannot be nil." if v.nil? @x = v end
y=(v)
click to toggle source
# File lib/core/point.rb, line 20 def y=(v) raise "y cannot be nil." if v.nil? @y = v end