instance method
all_year
Ruby on Rails 6.1.7.10
Since v4.1.16Signature
all_year()
Returns a Range representing the whole year of the current date/time.
Source
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 321
def all_year
beginning_of_year..end_of_year
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 321
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations