Module: Holidays::KR

Defined in:
lib/generated_definitions/kr.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: definitions/kr.yaml

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

Class Method Summary collapse

Class Method Details

.custom_methodsObject


34
35
36
37
38
# File 'lib/generated_definitions/kr.rb', line 34

def self.custom_methods
  {
    
  }
end

.defined_regionsObject


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

def self.defined_regions
  [:kr]
end

.holidays_by_monthObject


13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/generated_definitions/kr.rb', line 13

def self.holidays_by_month
  {
          1 => [{:mday => 1, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "설날", :regions => [:kr]},
        {:mday => 2, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "설날 연휴", :regions => [:kr]},
        {:mday => 1, :name => "신정", :regions => [:kr]}],
  3 => [{:mday => 1, :name => "3·1절", :regions => [:kr]}],
  4 => [{:mday => 8, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "석가탄신일", :regions => [:kr]}],
  5 => [{:mday => 5, :name => "어린이날", :regions => [:kr]}],
  6 => [{:mday => 6, :name => "현충일", :regions => [:kr]}],
  7 => [{:mday => 17, :type => :informal, :name => "제헌절", :regions => [:kr]}],
  8 => [{:mday => 14, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "추석 연휴", :regions => [:kr]},
        {:mday => 15, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "추석", :regions => [:kr]},
        {:mday => 16, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "추석 연휴", :regions => [:kr]},
        {:mday => 15, :name => "광복절", :regions => [:kr]}],
  10 => [{:mday => 3, :name => "개천절", :regions => [:kr]},
        {:mday => 9, :name => "한글날", :regions => [:kr]}],
  12 => [{:mday => 25, :name => "크리스마스", :regions => [:kr]},
        {:mday => 30, :function => "lunar_to_solar(year, month, day, region)", :function_arguments => [:year, :month, :day, :region], :name => "설날 연휴", :regions => [:kr]}]
  }
end