Module: Holidays::CO

Defined in:
lib/generated_definitions/co.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: definitions/co.yaml

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

Class Method Summary collapse

Class Method Details

.custom_methodsObject



37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/generated_definitions/co.rb', line 37

def self.custom_methods
  {
      "to_following_monday_if_not_monday(date)" => Proc.new { |date|
if date.wday > 1
  date += ( 8 - date.wday )
elsif date.wday == 0
  date += 1
end
date
},


  }
end

.defined_regionsObject

:nodoc:



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

def self.defined_regions
  [:co]
end

.holidays_by_monthObject



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

def self.holidays_by_month
  {
            0 => [{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -3, :name => "Jueves Santo", :regions => [:co]},
        {:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Viernes Santo", :regions => [:co]},
        {:function => "easter(year)", :function_arguments => [:year], :function_modifier => 43, :name => "Día de la Ascensión", :regions => [:co]},
        {:function => "easter(year)", :function_arguments => [:year], :function_modifier => 64, :name => "Corpus Christi", :regions => [:co]},
        {:function => "easter(year)", :function_arguments => [:year], :function_modifier => 71, :name => "Sagrado Corazón", :regions => [:co]}],
  1 => [{:mday => 1, :name => "Año Nuevo", :regions => [:co]},
        {:mday => 6, :function => "to_following_monday_if_not_monday(date)", :function_arguments => [:date], :name => "Día de los Reyes Magos", :regions => [:co]}],
  3 => [{:mday => 19, :function => "to_following_monday_if_not_monday(date)", :function_arguments => [:date], :name => "Día de San José", :regions => [:co]}],
  5 => [{:mday => 1, :name => "Día del Trabajo", :regions => [:co]}],
  6 => [{:mday => 29, :function => "to_following_monday_if_not_monday(date)", :function_arguments => [:date], :name => "San Pedro y San Pablo", :regions => [:co]}],
  7 => [{:mday => 9, :function => "to_following_monday_if_not_monday(date)", :function_arguments => [:date], :year_ranges => { :from => 2026 },:name => "Día de Nuestra Señora del Rosario de Chiquinquirá", :regions => [:co]},
        {:mday => 20, :name => "Día de la Independencia", :regions => [:co]}],
  8 => [{:mday => 7, :name => "Batalla de Boyacá", :regions => [:co]},
        {:mday => 15, :function => "to_following_monday_if_not_monday(date)", :function_arguments => [:date], :name => "La Asunción de la Virgen", :regions => [:co]}],
  10 => [{:mday => 12, :function => "to_following_monday_if_not_monday(date)", :function_arguments => [:date], :name => "Día de la Raza", :regions => [:co]}],
  11 => [{:mday => 1, :function => "to_following_monday_if_not_monday(date)", :function_arguments => [:date], :name => "Día de Todos los Santos", :regions => [:co]},
        {:mday => 11, :function => "to_following_monday_if_not_monday(date)", :function_arguments => [:date], :name => "Independencia de Cartagena", :regions => [:co]}],
  12 => [{:mday => 8, :name => "Día de la Inmaculada Concepción", :regions => [:co]},
        {:mday => 25, :name => "Navidad", :regions => [:co]}]
  }
end