method
coerce
v5.1.7 -
Show latest stable
- Class:
ActiveSupport::Duration
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