Module: Holidays::PE

Defined in:
lib/generated_definitions/pe.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: definitions/pe.yaml

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

require 'holidays'
require 'generated_definitions/pe'

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

Class Method Summary collapse

Class Method Details

.custom_methodsObject


43
44
45
46
47
# File 'lib/generated_definitions/pe.rb', line 43

def self.custom_methods
  {
    
  }
end

.defined_regionsObject


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

def self.defined_regions
  [:pe]
end

.holidays_by_monthObject


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/generated_definitions/pe.rb', line 19

def self.holidays_by_month
  {
          0 => [{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -3, :name => "Jueves Santo", :regions => [:pe]},
        {:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Viernes Santo", :regions => [:pe]},
        {:function => "easter(year)", :function_arguments => [:year], :name => "Pascua", :regions => [:pe]}],
  1 => [{:mday => 1, :name => "Año Nuevo", :regions => [:pe]},
        {:mday => 6, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de los Reyes Magos", :regions => [:pe]}],
  5 => [{:mday => 1, :name => "Día del Trabajador", :regions => [:pe]},
        {:wday => 0, :week => 2, :type => :informal, :name => "Día de la Madre", :regions => [:pe]}],
  6 => [{:mday => 7, :type => :informal, :name => "Día de la Bandera", :regions => [:pe]},
        {:wday => 0, :week => 3, :type => :informal, :name => "Día del Padre", :regions => [:pe]},
        {:mday => 24, :type => :informal, :name => "Inti Raymi", :regions => [:pe]},
        {:mday => 29, :name => "San Pablo y San Pedro", :regions => [:pe]}],
  7 => [{:mday => 28, :name => "Primer Día de la Independencia", :regions => [:pe]},
        {:mday => 29, :name => "Segundo Día de la Independencia", :regions => [:pe]}],
  8 => [{:mday => 30, :name => "Santa Rosa de Lima", :regions => [:pe]}],
  9 => [{:mday => 24, :type => :informal, :name => "Día de las Fuerzas Armadas", :regions => [:pe]}],
  10 => [{:mday => 8, :name => "Batalla de Angamos", :regions => [:pe]}],
  11 => [{:mday => 1, :name => "Todos los Santos", :regions => [:pe]}],
  12 => [{:mday => 8, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Inmaculada Concepción", :regions => [:pe]},
        {:mday => 25, :name => "Navidad del Señor", :regions => [:pe]}]
  }
end