lib/timespan/span.rb in timespan-0.2.0 vs lib/timespan/span.rb in timespan-0.2.1

- old
+ new

@@ -4,9 +4,11 @@ module Span attr_reader :duration def duration= duration @duration = case duration + when Timespan + duration.duration when Duration duration when Numeric, Hash Duration.new duration when String \ No newline at end of file