Class: CalendariumRomanum::Temporale::CelebrationFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/calendarium-romanum/temporale/celebration_factory.rb

Overview

builds temporale Celebrations

Class Method Summary collapse

Class Method Details

.eachObject


6
7
8
9
10
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 6

def each
  celebrations.each do |symbol|
    yield public_send(symbol)
  end
end

.first_advent_sundayObject


12
13
14
15
16
17
18
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 12

def first_advent_sunday
  Temporale.create_celebration(
    I18n.t('temporale.advent.sunday', week: Ordinalizer.ordinal(1)),
    Ranks::PRIMARY,
    Colours::VIOLET
  )
end