Method: ActiveSupport::Duration#to_s
- Defined in:
- activesupport/lib/active_support/duration.rb
#to_s ⇒ Object
Returns the amount of seconds a duration covers as a string. For more information check to_i method.
1.day.to_s # => "86400"
353 354 355 |
# File 'activesupport/lib/active_support/duration.rb', line 353 def to_s @value.to_s end |