Class: CalendariumRomanum::Util::Year
- Inherits:
-
DateEnumerator
- Object
- DateEnumerator
- CalendariumRomanum::Util::Year
- Defined in:
- lib/calendarium-romanum/util.rb
Overview
Enumerates days of a year
Instance Method Summary collapse
-
#initialize(year) ⇒ Year
constructor
A new instance of Year.
Methods inherited from DateEnumerator
#==, #each, #enumeration_over?
Constructor Details
#initialize(year) ⇒ Year
Returns a new instance of Year.
45 46 47 48 |
# File 'lib/calendarium-romanum/util.rb', line 45 def initialize(year) @start = Date.new year, 1, 1 @prop = :year end |