+(other) Ver: 2.0.0
From: ActiveSupport::Duration Version 2.0.0
Comments

Adds another Duration or a Numeric to this Duration. Numeric values are treated as seconds.

Sourcecode
# 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
Add New Note User Added Notes