Class: CalendariumRomanum::Colour
- Inherits:
-
Object
- Object
- CalendariumRomanum::Colour
- Includes:
- ValueObjectInterface
- Defined in:
- lib/calendarium-romanum/enums.rb
Overview
Represents a liturgical colour
Instance Attribute Summary
Attributes included from ValueObjectInterface
Instance Method Summary collapse
-
#initialize(symbol) ⇒ Colour
constructor
A new instance of Colour.
Methods included from ValueObjectInterface
Constructor Details
#initialize(symbol) ⇒ Colour
Returns a new instance of Colour.
29 30 31 32 |
# File 'lib/calendarium-romanum/enums.rb', line 29 def initialize(symbol) @symbol = symbol @i18n_key = "colour.#{@symbol}" end |