Class: CalendariumRomanum::Temporale::CelebrationFactory

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

Overview

Provides factory methods building Celebrations for temporale feasts

Class Method Summary collapse

Class Method Details

.ascensionCelebration

Returns:



79
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 79

celebration(:ascension, Ranks::PRIMARY)

.ash_wednesdayCelebration

Returns:



64
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 64

celebration(:ash_wednesday, Ranks::PRIMARY, Colours::VIOLET)

.baptism_of_lordCelebration

Returns:



61
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 61

celebration(:baptism_of_lord, Ranks::FEAST_LORD_GENERAL)

.christ_kingCelebration

Returns:



94
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 94

celebration(:christ_king, Ranks::SOLEMNITY_GENERAL)

.corpus_christiCelebration

Returns:



88
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 88

celebration(:corpus_christi, Ranks::SOLEMNITY_GENERAL)

.each {|Symbol| ... } ⇒ void, Enumerator

Yields:

  • (Symbol)

Returns:

  • (void, Enumerator)


9
10
11
12
13
14
15
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 9

def each
  return to_enum(__method__) unless block_given?

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

.easter_sundayCelebration

Returns:



76
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 76

celebration(:easter_sunday, Ranks::TRIDUUM)

.epiphanyCelebration

Returns:



58
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 58

celebration(:epiphany, Ranks::PRIMARY)

.first_advent_sundayCelebration

Returns:



18
19
20
21
22
23
24
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 18

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

.good_fridayCelebration

Returns:



67
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 67

celebration(:good_friday, Ranks::TRIDUUM, Colours::RED)

.holy_familyCelebration

Returns:



52
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 52

celebration(:holy_family, Ranks::FEAST_LORD_GENERAL)

.holy_saturdayCelebration

Returns:



70
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 70

celebration(:holy_saturday, Ranks::TRIDUUM, Colours::VIOLET)

.holy_trinityCelebration

Returns:



85
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 85

celebration(:holy_trinity, Ranks::SOLEMNITY_GENERAL)

.immaculate_heartCelebration

Returns:



100
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 100

celebration(:immaculate_heart, Ranks::MEMORIAL_GENERAL)

.mother_of_churchCelebration

Returns:



97
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 97

celebration(:mother_of_church, Ranks::MEMORIAL_GENERAL)

.mother_of_godCelebration

Returns:



55
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 55

celebration(:mother_of_god, Ranks::SOLEMNITY_GENERAL, fixed_date: AbstractDate.new(1, 1))

.nativityCelebration

Returns:



49
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 49

celebration(:nativity, Ranks::PRIMARY, fixed_date: AbstractDate.new(12, 25))

.palm_sundayCelebration

Returns:



73
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 73

celebration(:palm_sunday, Ranks::PRIMARY, Colours::RED)

.pentecostCelebration

Returns:



82
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 82

celebration(:pentecost, Ranks::PRIMARY, Colours::RED)

.sacred_heartCelebration

Returns:



91
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 91

celebration(:sacred_heart, Ranks::SOLEMNITY_GENERAL)

.saturday_memorial_bvmCelebration

Returns:



103
# File 'lib/calendarium-romanum/temporale/celebration_factory.rb', line 103

celebration(:saturday_memorial_bvm, Ranks::MEMORIAL_OPTIONAL)