Module: Holidays::SG

Defined in:
lib/generated_definitions/sg.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: definitions/sg.yaml

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

require 'holidays'
require 'generated_definitions/sg'

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

Class Method Summary collapse

Class Method Details

.custom_methodsObject



31
32
33
34
35
# File 'lib/generated_definitions/sg.rb', line 31

def self.custom_methods
  {
    
  }
end

.defined_regionsObject

:nodoc:



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

def self.defined_regions
  [:sg]
end

.holidays_by_monthObject



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

def self.holidays_by_month
  {
          0 => [{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Good Friday", :regions => [:sg]}],
  1 => [{:mday => 1, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:sg]}],
  2 => [{:mday => 14, :type => :informal, :name => "Valentine's Day", :regions => [:sg]},
        {:mday => 15, :type => :informal, :name => "Total Defence Day", :regions => [:sg]}],
  5 => [{:mday => 1, :name => "Labour Day", :regions => [:sg]}],
  8 => [{:mday => 9, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "National Day", :regions => [:sg]}],
  12 => [{:mday => 25, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:sg]}]
  }
end