Module: Aef::Weekling::CoreExtensions::ToYear
- Defined in:
- lib/aef/weekling/core_extensions/to_year.rb
Overview
This module allows integer-like objects to be extended to support to_year.
Instance Method Summary collapse
-
#to_year ⇒ Object
Constructs an Aef::Weekling::Year from the object.
Instance Method Details
#to_year ⇒ Object
Constructs an Aef::Weekling::Year from the object.
29 30 31 |
# File 'lib/aef/weekling/core_extensions/to_year.rb', line 29 def to_year Year.new(self) end |