instance method all_year

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v4.0.13

Available in: v3.2.22.5 v4.0.13

Signature

all_year()

Returns a Range representing the whole year of the current time.

Source
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 321
  def all_year
    beginning_of_year..end_of_year
  end

Defined in activesupport/lib/active_support/core_ext/time/calculations.rb line 321 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Time

Type at least 2 characters to search.

↑↓ navigate · open · esc close