Module: Holidays::Definition::CustomMethods::PH

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

Overview

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

Class Method Summary collapse

Class Method Details

.ph_heroes_day(year) ⇒ Object



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

def ph_heroes_day(year)
  date = Date.new(year, 8, -1)
  date -= (date.wday - 1) % 7
  date
end