# encoding: utf-8
module Holidays
  # This file is generated by the Ruby Holidays gem.
  #
  # Definitions loaded: data/ecb_target.yaml
  #
  # To use the definitions in this file, load it right after you load the
  # Holiday gem:
  #
  #   require 'holidays'
  #   require 'holidays/ecb_target'
  #
  # All the definitions are available at https://github.com/alexdunae/holidays
  module ECB_TARGET # :nodoc:
    def self.defined_regions
      [:ecb_target]
    end

    def self.holidays_by_month
      {
              0 => [{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :key => "", :name => "Good Friday", :regions => [:ecb_target]},
            {:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :key => "", :name => "Easter Monday", :regions => [:ecb_target]}],
      1 => [{:mday => 1, :key => "", :name => "New Year's Day", :regions => [:ecb_target]}],
      5 => [{:mday => 1, :key => "", :name => "Labour Day", :regions => [:ecb_target]}],
      12 => [{:mday => 25, :key => "", :name => "Christmas Day", :regions => [:ecb_target]},
            {:mday => 26, :key => "", :name => "Christmas Holiday", :regions => [:ecb_target]}]
      }
    end
  end


end

Holidays.merge_defs(Holidays::ECB_TARGET.defined_regions, Holidays::ECB_TARGET.holidays_by_month)
