# File /Users/nshb/svn/svn.inimit.com/railsmanual.com/www/trunk/src/rails-2.0.0/activesupport/lib/active_support/duration.rb, line 16 def +(other) if Duration === other Duration.new(value + other.value, @parts + other.parts) else Duration.new(value + other, @parts + [[:seconds, other]]) end end
Adds another Duration or a Numeric to this Duration. Numeric values are treated as seconds.