lib/geometry/edge.rb in geometry-in-ruby-0.0.1 vs lib/geometry/edge.rb in geometry-in-ruby-0.0.2

- old
+ new

@@ -12,9 +12,14 @@ =end class Edge attr_reader :first, :last + attr_writer :options + def options + @options = {} if !@options + @options + end # Construct a new {Edge} object from any two things that can be converted # to a {Point}. def initialize(point0, point1) @first, @last = [Point[point0], Point[point1]]