module Holidays::US

def self.custom_methods

def self.custom_methods
  {
      "christmas_eve_holiday(date)" => Proc.new { |date|
nning_of_month = Date.civil(date.year, date.month, 1)
e.saturday? || date.sunday?) ? date.downto(beginning_of_month).find {|d| d if d.wday == 5} : date
h_hashanah(year)" => Proc.new { |year|
_hashanah_dates = {
'2014' => Date.civil(2014, 9, 25),
'2015' => Date.civil(2015, 9, 14),
'2016' => Date.civil(2016, 10, 3),
'2017' => Date.civil(2017, 9, 21),
'2018' => Date.civil(2018, 9, 10),
'2019' => Date.civil(2019, 9, 30),
'2020' => Date.civil(2020, 9, 19)
_hashanah_dates[year.to_s]
_kippur(year)" => Proc.new { |year|
kippur_dates = {
'2014' => Date.civil(2014, 10, 4),
'2015' => Date.civil(2015, 9, 23),
'2016' => Date.civil(2016, 10, 12),
'2017' => Date.civil(2017, 9, 30),
'2018' => Date.civil(2018, 9, 19),
'2019' => Date.civil(2019, 10, 9),
'2020' => Date.civil(2020, 9, 28)
kippur_dates[year.to_s]
rgia_state_holiday(year, month)" => Proc.new { |year, month|
nning_of_month = Date.civil(year, month, 1)
e_holiday = Date.civil(year, month, 26)
e_holiday.downto(beginning_of_month).find {|date| date if date.wday == 1 }
_jackson_day(year, month)" => Proc.new { |year, month|
of_holiday = Holidays::Factory::DateCalculator.day_of_month_calculator.call(year, month, 3, 1)
nning_of_month = Date.civil(year, month, 1)
_day = Date.civil(year, month, day_of_holiday)
_day.downto(beginning_of_month).find {|date| date if date.wday == 5 }
ction_day(year)" => Proc.new { |year|
days::Factory::DateCalculator.day_of_month_calculator.call(year, 11, 1, 1) + 1
n_year_election_day(year)" => Proc.new { |year|
ear % 2 == 0
lidays::Factory::DateCalculator.day_of_month_calculator.call(year, 11, 1, 1) + 1
inauguration_day(year)" => Proc.new { |year|
 % 4 == 1 ? 20 : nil
_after_thanksgiving(year)" => Proc.new { |year|
days::Factory::DateCalculator.day_of_month_calculator.call(year, 11, 4, 4) + 1
  }
end