Module: Holidays::TR
- Defined in:
- lib/generated_definitions/tr.rb
Overview
This file is generated by the Ruby Holidays gem.
Definitions loaded: definitions/tr.yaml
All the definitions are available at github.com/holidays/holidays
Class Method Summary collapse
Class Method Details
.custom_methods ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/generated_definitions/tr.rb', line 32 def self.custom_methods { "ramadan_feast(year)" => Proc.new { |year| begin_of_ramadan_feast = { '2014' => Date.civil(2014, 7, 28), '2015' => Date.civil(2015, 7, 17), '2016' => Date.civil(2016, 7, 5), '2017' => Date.civil(2017, 6, 25), '2018' => Date.civil(2018, 6, 15), '2019' => Date.civil(2019, 6, 4), '2020' => Date.civil(2020, 5, 24) } begin_of_ramadan_feast[year.to_s] }, "sacrifice_feast(year)" => Proc.new { |year| begin_of_sacrifice_feast = { '2014' => Date.civil(2014, 10, 4), '2015' => Date.civil(2015, 9, 24), '2016' => Date.civil(2016, 9, 12), '2017' => Date.civil(2017, 9, 1), '2018' => Date.civil(2018, 8, 21), '2019' => Date.civil(2019, 8, 11), '2020' => Date.civil(2020, 7, 31) } begin_of_sacrifice_feast[year.to_s] }, } end |
.defined_regions ⇒ Object
:nodoc:
9 10 11 |
# File 'lib/generated_definitions/tr.rb', line 9 def self.defined_regions [:tr] end |
.holidays_by_month ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/generated_definitions/tr.rb', line 13 def self.holidays_by_month { 0 => [{:function => "ramadan_feast(year)", :function_arguments => [:year], :name => "Ramazan Bayramı", :regions => [:tr]}, {:function => "ramadan_feast(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Ramazan Bayramı (ikinci tatil)", :regions => [:tr]}, {:function => "ramadan_feast(year)", :function_arguments => [:year], :function_modifier => 2, :name => "Ramazan Bayramı (üçüncü tatil)", :regions => [:tr]}, {:function => "sacrifice_feast(year)", :function_arguments => [:year], :name => "Kurban Bayramı", :regions => [:tr]}, {:function => "sacrifice_feast(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Kurban Bayramı (ikinci tatil)", :regions => [:tr]}, {:function => "sacrifice_feast(year)", :function_arguments => [:year], :function_modifier => 2, :name => "Kurban Bayramı (üçüncü tatil)", :regions => [:tr]}, {:function => "sacrifice_feast(year)", :function_arguments => [:year], :function_modifier => 3, :name => "Kurban Bayramı (dördüncü tatil)", :regions => [:tr]}], 1 => [{:mday => 1, :name => "Yılbaşı", :regions => [:tr]}], 4 => [{:mday => 23, :name => "Ulusal Egemenlik ve Çocuk Bayramı", :regions => [:tr]}], 5 => [{:mday => 1, :name => "Emek ve Dayanışma Günü", :regions => [:tr]}, {:mday => 19, :name => "Atatürk'ü Anma Gençlik ve Spor Bayramı", :regions => [:tr]}], 7 => [{:mday => 15, :year_ranges => { :from => 2016 },:name => "Demokrasi ve Milli Birlik Günü", :regions => [:tr]}], 8 => [{:mday => 30, :name => "Zafer Bayramı", :regions => [:tr]}], 10 => [{:mday => 29, :name => "Cumhuriyet Bayramı", :regions => [:tr]}] } end |