Class: CalendariumRomanum::Colour

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

Overview

Represents a liturgical colour

Instance Attribute Summary

Attributes included from ValueObjectInterface

#symbol

Instance Method Summary collapse

Methods included from ValueObjectInterface

#name, #to_s

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