Sha256: 1a3a0914398c11fa3658a7e9fa5aead17e1efe3911bed4e238fba667a2bb1220

Contents?: true

Size: 1.31 KB

Versions: 3

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

require_relative './resource/parser'

# :nodoc:
module Zakuro
  # :nodoc:
  module Japan
    # :nodoc:
    module Gengou
      #
      # Resource yaml解析結果
      #
      module Resource
        # @return [Array<Set>] 元号セット情報リスト
        LIST = [
          Parser.run(filepath: File.expand_path(
            './resource/yaml/set-001-until-south.yaml',
            __dir__
          )),
          Parser.run(filepath: File.expand_path(
            './resource/yaml/set-002-from-north.yaml',
            __dir__
          )),
          Parser.run(filepath: File.expand_path(
            './resource/yaml/set-003-modern.yaml',
            __dir__
          ))
        ].freeze

        # @return [Array<Set>] 元号セット情報リスト(運用値)
        OPERATED_LIST = [
          Parser.run(filepath: File.expand_path(
            './resource/yaml/set-001-until-south.yaml',
            __dir__
          ), operated: true),
          Parser.run(filepath: File.expand_path(
            './resource/yaml/set-002-from-north.yaml',
            __dir__
          ), operated: true),
          Parser.run(filepath: File.expand_path(
            './resource/yaml/set-003-modern.yaml',
            __dir__
          ), operated: true)
        ].freeze
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zakuro-1.0.0 lib/zakuro/era/japan/gengou/resource.rb
zakuro-0.9.4 lib/zakuro/era/japan/gengou/resource.rb
zakuro-0.9.3 lib/zakuro/era/japan/gengou/resource.rb