instance method
all_year
Ruby on Rails 7.1.6
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 331
def all_year
beginning_of_year..end_of_year
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 331
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations