instance method
to_s
Ruby on Rails edge
Since v4.2.11.3Signature
to_s()
Returns the amount of seconds a duration covers as a string. For more information check to_i method.
“‘ 1.day.to_s # => “86400” “`
Source
# File activesupport/lib/active_support/duration.rb, line 370
def to_s
@value.to_s
end
Defined in activesupport/lib/active_support/duration.rb line 370
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Duration