Module: Holidays::Definition::CustomMethods::SE

Defined in:
lib/holidays/definition/custom_methods/se.rb

Overview

se custom holiday calculations, ported verbatim from the methods: block in definitions/se.yaml.

Class Method Summary collapse

Class Method Details

.se_alla_helgons_dag(year) ⇒ Object



16
17
18
19
20
# File 'lib/holidays/definition/custom_methods/se.rb', line 16

def se_alla_helgons_dag(year)
  date = Date.civil(year,10,31)
  date += (6 - date.wday)
  date
end

.se_midsommardagen(year) ⇒ Object



10
11
12
13
14
# File 'lib/holidays/definition/custom_methods/se.rb', line 10

def se_midsommardagen(year)
  date = Date.civil(year,6,20)
  date += (6 - date.wday)
  date
end