Sha256: cccd88a30652b3d0db0e2a42d751dc09af8fa8a5fdbe45ff367aabfae8b87b67
Contents?: true
Size: 556 Bytes
Versions: 3
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true require_relative './version_class_resolver' # :nodoc: module Zakuro # # Context 暦コンテキスト # class Context attr_reader :version_name attr_reader :resolver VERSION_NAMES = %w[Genka Gihou Daien Senmyou Joukyou Kansei Tenpou Gregorio].freeze def initialize(version_name:) raise ArgumentError.new, 'invalid version' unless VERSION_NAMES.include?(version_name) @version_name = version_name @resolver = VersionClassResolver.new(version_name: version_name) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zakuro-0.5.0 | lib/zakuro/version/context.rb |
zakuro-0.4.0 | lib/zakuro/version/context.rb |
zakuro-0.3.0 | lib/zakuro/version/context.rb |