Module: Holidays::NL

Defined in:
lib/holidays/nl.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: data/nl.yaml

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

require 'holidays'
require 'holidays/nl'

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

Class Method Summary collapse

Class Method Details

.defined_regionsObject

:nodoc:



15
16
17
# File 'lib/holidays/nl.rb', line 15

def self.defined_regions
  [:nl]
end

.holidays_by_monthObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/holidays/nl.rb', line 19

def self.holidays_by_month
  {
          0 => [{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Goede Vrijdag", :regions => [:nl]},
        {:function => lambda { |year| Holidays.easter(year) }, :function_id => "easter(year)", :name => "Pasen", :regions => [:nl]},
        {:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Pasen", :regions => [:nl]},
        {:function => lambda { |year| Holidays.easter(year)+39 }, :function_id => "easter(year)+39", :name => "Hemelvaartsdag", :regions => [:nl]},
        {:function => lambda { |year| Holidays.easter(year)+49 }, :function_id => "easter(year)+49", :name => "Pinksteren", :regions => [:nl]},
        {:function => lambda { |year| Holidays.easter(year)+50 }, :function_id => "easter(year)+50", :name => "Pinksteren", :regions => [:nl]}],
  1 => [{:mday => 1, :name => "Nieuwjaar", :regions => [:nl]}],
  4 => [{:mday => 27, :name => "Koningsdag", :regions => [:nl]}],
  5 => [{:mday => 4, :name => "Dodenherdenking", :regions => [:nl]},
        {:mday => 5, :name => "Bevrijdingsdag", :regions => [:nl]}],
  12 => [{:mday => 5, :type => :informal, :name => "Sinterklaas", :regions => [:nl]},
        {:mday => 25, :name => "Kerstmis", :regions => [:nl]},
        {:mday => 26, :name => "Kerstmis", :regions => [:nl]}]
  }
end