Module: Holidays::Definition::CustomMethods::DE

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

Overview

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

Class Method Summary collapse

Class Method Details

.de_buss_und_bettag(year) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/holidays/definition/custom_methods/de.rb', line 10

def de_buss_und_bettag(year)
  date = Date.civil(year,11,23)
  if date.wday > 3
    date -= (date.wday - 3)
  else
    date -= (date.wday + 4)
  end
  date
end