class Polygon::Point
A polygon point to represent a point inside a canvas or to build a shape
Attributes
x[RW]
y[RW]
Public Class Methods
new(attributes = {})
click to toggle source
# File lib/polygon/point.rb, line 8 def initialize(attributes = {}) attributes.each do |key, value| setter = "#{key}=" send(setter, value) if respond_to?(setter) end end