instance method
monday
Ruby on Rails 4.1.16
Since v4.0.13Signature
monday()
Returns Monday of this week assuming that week starts on Monday. DateTime objects have their time set to 0:00.
Source
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 182
def monday
beginning_of_week(:monday)
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 182
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations