Module: Holidays::HU

Defined in:
lib/holidays/hu.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: data/hu.yaml

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

require 'holidays'
require 'holidays/hu'

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

Class Method Summary (collapse)

Class Method Details

+ (Object) defined_regions



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

def self.defined_regions
  [:hu]
end

+ (Object) holidays_by_month



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

def self.holidays_by_month
  {
          0 => [{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Húsvét hétfő", :regions => [:hu]},
        {:function => lambda { |year| Holidays.easter(year)+50 }, :function_id => "easter(year)+50", :name => "Pünkösd hétfő", :regions => [:hu]}],
  1 => [{:mday => 1, :name => "Újév", :regions => [:hu]}],
  3 => [{:mday => 15, :name => "1848/49-es forradalom és szabadságharc ünnepe", :regions => [:hu]}],
  5 => [{:mday => 1, :name => "A munka ünnepe", :regions => [:hu]}],
  8 => [{:mday => 20, :name => "Az államalapítás ünnepe", :regions => [:hu]}],
  10 => [{:mday => 23, :name => "1956-os forradalom és szabadságharc ünnepe", :regions => [:hu]}],
  11 => [{:mday => 1, :name => "Mindenszentek", :regions => [:hu]}],
  12 => [{:mday => 25, :name => "Karácsony", :regions => [:hu]},
        {:mday => 26, :name => "Karácsony", :regions => [:hu]}]
  }
end