Created
September 13, 2022 18:08
-
-
Save igneus/b57179793713ffbfc2fcc45c31a6340e to your computer and use it in GitHub Desktop.
In which years does each feast of the Lord fall on Sunday and is thus celebrated with first Vespers?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In which years does each feast of the Lord fall on Sunday and is thus celebrated with first Vespers? | |
require 'calendarium-romanum/cr' | |
years = 2000 .. 2100 | |
sanctorale = CR::Data::GENERAL_ROMAN_ENGLISH.load | |
sanctorale | |
.each_day | |
.select {|_,celebrations| celebrations.first.rank == CR::Ranks::FEAST_LORD_GENERAL } | |
.collect {|_,celebrations| celebrations.first } | |
.each do |celebration| | |
puts celebration.title | |
puts \ | |
years | |
.select {|y| celebration.date.concretize(y).sunday? } | |
.collect(&:to_s) | |
.join(', ') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment