method

coerce

coerce(other)
public

No documentation available.

# File activesupport/lib/active_support/duration.rb, line 214
    def coerce(other) #:nodoc:
      if Scalar === other
        [other, self]
      else
        [Scalar.new(other), self]
      end
    end