Module: Holidays::KE

Defined in:
lib/generated_definitions/ke.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: definitions/ke.yaml

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

Class Method Summary collapse

Class Method Details

.custom_methodsObject



28
29
30
31
32
# File 'lib/generated_definitions/ke.rb', line 28

def self.custom_methods
  {
      
  }
end

.defined_regionsObject

:nodoc:



9
10
11
# File 'lib/generated_definitions/ke.rb', line 9

def self.defined_regions
  [:ke]
end

.holidays_by_monthObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/generated_definitions/ke.rb', line 13

def self.holidays_by_month
  {
            0 => [{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Good Friday", :regions => [:ke]},
        {:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Easter Monday", :regions => [:ke]}],
  1 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:ke]}],
  5 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Labour Day", :regions => [:ke]}],
  6 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Madaraka Day", :regions => [:ke]}],
  10 => [{:mday => 10, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Huduma Day", :regions => [:ke]},
        {:mday => 20, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Mashujaa Day", :regions => [:ke]}],
  12 => [{:mday => 12, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Jamhuri Day", :regions => [:ke]},
        {:mday => 25, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:ke]},
        {:mday => 26, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Utamaduni Day", :regions => [:ke]}]
  }
end