Module: HolidayJp

Defined in:
lib/holiday_jp.rb,
lib/holiday_jp/holiday.rb,
lib/holiday_jp/version.rb,
lib/holiday_jp/holidays.rb

Defined Under Namespace

Classes: Holiday, Holidays

Constant Summary collapse

VERSION =
"0.7.0"

Class Method Summary collapse

Class Method Details

.between(start, last) ⇒ Object



5
6
7
# File 'lib/holiday_jp.rb', line 5

def self.between(start, last)
  holidays.between(start, last)
end

.holiday?(date) ⇒ Boolean

Returns:

  • (Boolean)


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

def self.holiday?(date)
  holidays.holiday?(date)
end

.holidaysObject



13
14
15
# File 'lib/holiday_jp.rb', line 13

def self.holidays
  @@_holidays ||= Holidays.new
end