lib/geometry/polyline.rb in geometry-in-ruby-0.0.1 vs lib/geometry/polyline.rb in geometry-in-ruby-0.0.2
- old
+ new
@@ -12,9 +12,14 @@
=end
class Polyline
attr_reader :edges, :vertices
+ attr_writer :options
+ def options
+ @options = {} if !@options
+ @options
+ end
# Construct a new Polyline from Points and/or Edges
# @note The constructor will try to convert all of its arguments into {Point}s and
# {Edge}s. Then successive {Point}s will be collpased into {Edge}s. Successive
# {Edge}s that share a common vertex will be added to the new {Polyline}. If