Module: Zakuro::Japan::Gengou::Resource

Defined in:
lib/zakuro/era/japan/gengou/resource.rb,
lib/zakuro/era/japan/gengou/resource/parser.rb,
lib/zakuro/era/japan/gengou/resource/validator.rb

Overview

Resource yaml解析結果

Defined Under Namespace

Modules: Parser, Validator

Constant Summary collapse

LIST =

Returns 元号セット情報リスト.

Returns:

  • (Array<Set>)

    元号セット情報リスト

[
  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
OPERATED_LIST =

Returns 元号セット情報リスト(運用値).

Returns:

  • (Array<Set>)

    元号セット情報リスト(運用値)

[
  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