Module: Holidays::NERC
- Defined in:
- lib/generated_definitions/nerc.rb
Overview
This file is generated by the Ruby Holidays gem.
Definitions loaded: definitions/nerc.yaml
To use the definitions in this file, load it right after you load the Holiday gem:
require 'holidays'
require 'generated_definitions/nerc'
All the definitions are available at github.com/holidays/holidays
Class Method Summary collapse
Class Method Details
.custom_methods ⇒ Object
30 31 32 33 34 |
# File 'lib/generated_definitions/nerc.rb', line 30 def self.custom_methods { } end |
.defined_regions ⇒ Object
:nodoc:
15 16 17 |
# File 'lib/generated_definitions/nerc.rb', line 15 def self.defined_regions [:nerc] end |
.holidays_by_month ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/generated_definitions/nerc.rb', line 19 def self.holidays_by_month { 1 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:nerc]}], 5 => [{:wday => 1, :week => -1, :name => "Memorial Day", :regions => [:nerc]}], 7 => [{:mday => 4, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Independence Day", :regions => [:nerc]}], 9 => [{:wday => 1, :week => 1, :name => "Labor Day", :regions => [:nerc]}], 11 => [{:wday => 4, :week => 4, :name => "Thanksgiving", :regions => [:nerc]}], 12 => [{:mday => 25, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:nerc]}] } end |