Module: Holidays::ECB_TARGET

Defined in:
lib/generated_definitions/ecb_target.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: definitions/ecb_target.yaml

To use the definitions in this file, load it right after you load the Holiday gem:

require 'holidays'
require 'generated_definitions/ecb_target'

All the definitions are available at github.com/holidays/holidays

Class Method Summary collapse

Class Method Details

.custom_methodsObject



30
31
32
33
34
# File 'lib/generated_definitions/ecb_target.rb', line 30

def self.custom_methods
  {
    
  }
end

.defined_regionsObject

:nodoc:



15
16
17
# File 'lib/generated_definitions/ecb_target.rb', line 15

def self.defined_regions
  [:ecb_target]
end

.holidays_by_monthObject



19
20
21
22
23
24
25
26
27
28
# File 'lib/generated_definitions/ecb_target.rb', line 19

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