Method: Numeric#days
- Defined in:
- activesupport/lib/active_support/core_ext/numeric/time.rb
#days ⇒ Object Also known as: day
Returns a Duration instance matching the number of days provided.
2.days # => 2 days
37 38 39 |
# File 'activesupport/lib/active_support/core_ext/numeric/time.rb', line 37 def days ActiveSupport::Duration.days(self) end |