Module: BankHolidays
- Defined in:
- lib/bankholidays.rb
Class Method Summary collapse
-
.all ⇒ Object
Get a list of all bank holidays.
-
.next ⇒ Object
Get the next bank holiday.
Class Method Details
.all ⇒ Object
Get a list of all bank holidays
9 10 11 |
# File 'lib/bankholidays.rb', line 9 def self.all self.get_dates end |
.next ⇒ Object
Get the next bank holiday
14 15 16 |
# File 'lib/bankholidays.rb', line 14 def self.next self.get_dates.reject { |x| x[:date] < Date.today }.first end |