Class: CalendariumRomanum::Season

Inherits:
Object
  • Object
show all
Includes:
ValueObjectInterface
Defined in:
lib/calendarium-romanum/enums.rb

Overview

Liturgical season

Instance Attribute Summary collapse

Attributes included from ValueObjectInterface

#symbol

Instance Method Summary collapse

Methods included from ValueObjectInterface

#name, #to_s

Constructor Details

#initialize(symbol, colour) ⇒ Season

Returns a new instance of Season.

Parameters:

  • symbol (Symbol)

    internal identifier

  • colour (Colour)

    liturgical colour of the season’s Sundays and ferials



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

#colourColour? (readonly)

Liturgical colour of the season’s Sundays and ferials

May be nil if there is no single colour.

Returns:



75
76
77
# File 'lib/calendarium-romanum/enums.rb', line 75

def colour
  @colour
end