Class: CalendariumRomanum::Season
- Inherits:
-
Object
- Object
- CalendariumRomanum::Season
- Includes:
- ValueObjectInterface
- Defined in:
- lib/calendarium-romanum/enums.rb
Overview
Liturgical season
Instance Attribute Summary collapse
-
#colour ⇒ Colour?
readonly
Liturgical colour of the season’s Sundays and ferials.
Attributes included from ValueObjectInterface
Instance Method Summary collapse
-
#initialize(symbol, colour) ⇒ Season
constructor
A new instance of Season.
Methods included from ValueObjectInterface
Constructor Details
#initialize(symbol, colour) ⇒ Season
Returns a new instance of Season.
64 65 66 67 68 |
# File 'lib/calendarium-romanum/enums.rb', line 64 def initialize(symbol, colour) @symbol = symbol @colour = colour @i18n_key = "temporale.season.#{@symbol}" end |
Instance Attribute Details
#colour ⇒ Colour? (readonly)
Liturgical colour of the season’s Sundays and ferials
May be nil
if there is no single colour.
75 76 77 |
# File 'lib/calendarium-romanum/enums.rb', line 75 def colour @colour end |