Module: Holidays::Definition::CustomMethods::IE

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

Overview

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

Class Method Summary collapse

Class Method Details

.ie_st_brigids_day(year) ⇒ Object



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

def ie_st_brigids_day(year)
  date = Date.civil(year, 2, 1)
  if date.wday == 5
    date
  else
    date + ((1 - date.wday) % 7)
  end
end