Module: Holidays::PT

Defined in:
lib/holidays/pt.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: data/pt.yaml

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

require 'holidays'
require 'holidays/pt'

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/pt.rb', line 15

def self.defined_regions
  [:pt]
end

+ (Object) holidays_by_month



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

def self.holidays_by_month
  {
          0 => [{:function => lambda { |year| Holidays.easter(year)-47 }, :function_id => "easter(year)-47", :type => :informal, :name => "Carnaval", :regions => [:pt]},
        {:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Sexta-feira Santa", :regions => [:pt]},
        {:function => lambda { |year| Holidays.easter(year) }, :function_id => "easter(year)", :name => "Páscoa", :regions => [:pt]}],
  1 => [{:mday => 1, :name => "Ano Novo", :regions => [:pt]}],
  4 => [{:mday => 25, :name => "Dia da Liberdade", :regions => [:pt]}],
  5 => [{:mday => 1, :name => "Dia do Trabalhador", :regions => [:pt]}],
  6 => [{:mday => 10, :name => "Dia de Portugal", :regions => [:pt]}],
  8 => [{:mday => 15, :name => "Assunção de Nossa Senhora", :regions => [:pt]}],
  12 => [{:mday => 8, :name => "Imaculada Conceição", :regions => [:pt]},
        {:mday => 25, :name => "Natal", :regions => [:pt]}]
  }
end