Sha256: 3c205fa970cc8f8292e37ba2e91dde8eaf227a81c4cc01d8cb2b3e155957b70e

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

# -*- coding: utf-8 -*-
require 'yaml'

module HolidayJp
  class Holidays
    attr_accessor :holidays

    def initialize
      @holidays = {}
      yaml = YAML.load_file(File.expand_path('../../../holidays.yml', __FILE__))
      yaml.map do |key, value|
        @holidays[key] = Holiday.new(key, value)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
holiday_jp-0.4.2 lib/holiday_jp/holidays.rb
holiday_jp-0.4.1 lib/holiday_jp/holidays.rb
holiday_jp-0.4.0 lib/holiday_jp/holidays.rb