Module: Holidays::NYSE

Defined in:
lib/generated_definitions/nyse.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: definitions/nyse.yaml

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

Class Method Summary collapse

Class Method Details

.custom_methodsObject



28
29
30
31
32
# File 'lib/generated_definitions/nyse.rb', line 28

def self.custom_methods
  {
      
  }
end

.defined_regionsObject

:nodoc:



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

def self.defined_regions
  [:nyse]
end

.holidays_by_monthObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/generated_definitions/nyse.rb', line 13

def self.holidays_by_month
  {
            0 => [{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Good Friday", :regions => [:nyse]}],
  1 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:nyse]},
        {:wday => 1, :week => 3, :name => "Martin Luther King, Jr. Day", :regions => [:nyse]}],
  2 => [{:wday => 1, :week => 3, :name => "Presidents' Day", :regions => [:nyse]}],
  5 => [{:wday => 1, :week => -1, :name => "Memorial Day", :regions => [:nyse]}],
  6 => [{:mday => 19, :year_ranges => { :from => 2022 },:observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Juneteenth National Independence Day", :regions => [:nyse]}],
  7 => [{:mday => 4, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Independence Day", :regions => [:nyse]}],
  9 => [{:wday => 1, :week => 1, :name => "Labor Day", :regions => [:nyse]}],
  11 => [{:wday => 4, :week => 4, :name => "Thanksgiving", :regions => [:nyse]}],
  12 => [{:mday => 25, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:nyse]}]
  }
end