lib/timespan/compare.rb in timespan-0.2.1 vs lib/timespan/compare.rb in timespan-0.2.2
- old
+ new
@@ -47,13 +47,15 @@
end
end
def +(other)
self.duration += Duration.new(other)
+ self
end
def -(other)
self.duration -= Duration.new(other)
+ self
end
def valid_compare? time
valid_compare_types.any? {|type| time.kind_of? type }
\ No newline at end of file