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

Instance Method Details

#to_yearObject

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