method
days_span
v4.2.1 -
Show latest stable
- Class:
DateAndTime::Calculations
days_span(day)private
No documentation available.
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 247
def days_span(day)
(DAYS_INTO_WEEK[day] - DAYS_INTO_WEEK[Date.beginning_of_week]) % 7
end