Sha256: 7e2a74da75c824a82f63cae86c6dea082e09b1118d5259e0271b35a772cc5705
Contents?: true
Size: 319 Bytes
Versions: 3
Compression:
Stored size: 319 Bytes
Contents
# -*- coding: utf-8 -*- require 'holiday_jp/holiday' require 'holiday_jp/holidays' module HolidayJp def self.between(start, last) Holidays.new.holidays.find_all do |date, _holiday| start <= date && date <= last end.map(&:last) end def self.holiday?(date) Holidays.new.holidays[date] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
holiday_jp-0.4.2 | lib/holiday_jp.rb |
holiday_jp-0.4.1 | lib/holiday_jp.rb |
holiday_jp-0.4.0 | lib/holiday_jp.rb |