Simple immutable value objects for ruby. Make a new value class: Point = Value.new(:x, :y) And use it: p = Point.new(1,0) p.x => 1 p.y => 0
Tom Crayford
March 19, 2011 5:27pm
aucune