Module: Holidays::MY

Defined in:
lib/generated_definitions/my.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: definitions/my.yaml

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

require 'holidays'
require 'generated_definitions/my'

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/my.rb', line 30

def self.custom_methods
  {
    
  }
end

.defined_regionsObject

:nodoc:



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

def self.defined_regions
  [:my]
end

.holidays_by_monthObject



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

def self.holidays_by_month
  {
          1 => [{:mday => 1, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:my]}],
  5 => [{:mday => 1, :name => "Labour Day", :regions => [:my]}],
  6 => [{:mday => 4, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Agong's Birthday", :regions => [:my]}],
  8 => [{:mday => 31, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Independence Day", :regions => [:my]}],
  9 => [{:mday => 16, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Malaysia Day", :regions => [:my]}],
  12 => [{:mday => 25, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:my]}]
  }
end