Module: DanskeHelligdage::FoersteMaj
- Defined in:
- lib/danske_helligdage/foerste_maj.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/danske_helligdage/foerste_maj.rb', line 6 def self.included(base) base.class_eval do alias_method :helligdag_without_foerste_maj, :helligdag alias_method :helligdag, :helligdag_with_foerste_maj end end |
Instance Method Details
#helligdag_with_foerste_maj ⇒ Object
13 14 15 |
# File 'lib/danske_helligdage/foerste_maj.rb', line 13 def helligdag_with_foerste_maj (month == 5 && day == 1) ? '1. maj' : helligdag_without_foerste_maj end |