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:


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

celebration(:ascension, Ranks::PRIMARY)

.ash_wednesdayCelebration

Returns:


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

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

.baptism_of_lordCelebration

Returns:


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

celebration(:baptism_of_lord, Ranks::FEAST_LORD_GENERAL)

.christ_kingCelebration

Returns:


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

celebration(:christ_king, Ranks::SOLEMNITY_GENERAL)

.corpus_christiCelebration

Returns:


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

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:


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

celebration(:easter_sunday, Ranks::TRIDUUM)

.epiphanyCelebration

Returns:


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

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:


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

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

.holy_familyCelebration

Returns:


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

celebration(:holy_family, Ranks::FEAST_LORD_GENERAL)

.holy_saturdayCelebration

Returns:


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

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

.holy_trinityCelebration

Returns:


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

celebration(:holy_trinity, Ranks::SOLEMNITY_GENERAL)

.immaculate_heartCelebration

Returns:


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

celebration(:immaculate_heart, Ranks::MEMORIAL_GENERAL)

.mother_of_churchCelebration

Returns:


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

celebration(:mother_of_church, Ranks::MEMORIAL_GENERAL)

.mother_of_godCelebration

Returns:


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

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

.nativityCelebration

Returns:


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

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

.palm_sundayCelebration

Returns:


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

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

.pentecostCelebration

Returns:


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

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

.sacred_heartCelebration

Returns:


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

celebration(:sacred_heart, Ranks::SOLEMNITY_GENERAL)

.saturday_memorial_bvmCelebration

Returns:


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

celebration(:saturday_memorial_bvm, Ranks::MEMORIAL_OPTIONAL)