class CalendariumRomanum::Temporale::Extensions::DedicationBeforeAllSaints
{Temporale} extension adding solemnity of dedication of a church celebrated on the Sunday before All Saints / last October Sunday.
In churches, whose actual day of consecration is unknown, the anniversary of consecration is celebrated either on October 25th, or on the Sunday before All Saints (cf. Notitiae 71/1972, p. 103). This extension implements the latter case.
@example
# It can be used either this way temporale = Temporale.new(2015, extensions: [ Temporale::Extensions::DedicationBeforeAllSaints ]) # Or, if you want to customize celebration title and/or symbol: temporale = Temporale.new(2015, extensions: [ Temporale::Extensions::DedicationBeforeAllSaints.new(title: 'Title', symbol: :symbol) ])
@since 0.8.0
Constants
- DEFAULT_SYMBOL
- DEFAULT_TITLE
Public Class Methods
dedication(year)
click to toggle source
Computes date of the solemnity
@param year [Integer] liturgical year @return [Date]
# File lib/calendarium-romanum/temporale/extensions/dedication_before_all_saints.rb, line 48 def self.dedication(year) DateHelper.sunday_before(Date.new(year + 1, 11, 1)) end
each_celebration() { |:dedication, celebration( DEFAULT_TITLE, SOLEMNITY_PROPER, WHITE, DEFAULT_SYMBOL )| ... }
click to toggle source
@yield [Symbol, Celebration] @return [void]
# File lib/calendarium-romanum/temporale/extensions/dedication_before_all_saints.rb, line 31 def self.each_celebration yield( # symbol refers to the date-computing method :dedication, Celebration.new( DEFAULT_TITLE, Ranks::SOLEMNITY_PROPER, Colours::WHITE, DEFAULT_SYMBOL ) ) end
new(title: DEFAULT_TITLE, symbol: DEFAULT_SYMBOL)
click to toggle source
# File lib/calendarium-romanum/temporale/extensions/dedication_before_all_saints.rb, line 52 def initialize(title: DEFAULT_TITLE, symbol: DEFAULT_SYMBOL) @title = title @symbol = symbol end
Public Instance Methods
each_celebration() { |proc| ... }
click to toggle source
@yield [Symbol, Celebration] @return [void]
# File lib/calendarium-romanum/temporale/extensions/dedication_before_all_saints.rb, line 59 def each_celebration yield( proc {|year| self.class.dedication(year) }, Celebration.new( @title, Ranks::SOLEMNITY_PROPER, Colours::WHITE, @symbol ) ) end