class ActiveSupport::Duration
def coerce(other) # :nodoc:
def coerce(other) # :nodoc: case other when Scalar [other, self] when Duration [Scalar.new(other.value), self] else [Scalar.new(other), self] end end
def coerce(other) # :nodoc: case other when Scalar [other, self] when Duration [Scalar.new(other.value), self] else [Scalar.new(other), self] end end