Sha256: 90e6d70c3a8c44b22072a83df291d7b6c2236ed4dc67bca0d6a1f6484873c15b
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
# frozen_string_literal: true require_relative './alignment/aligner' require_relative './resource' # :nodoc: module Zakuro # :nodoc: module Japan # :nodoc: module Gengou # # Alignment 整列 # module Alignment # @return [Integer] 1行目元号 FIRST_LINE = Aligner::FIRST_LINE # @return [Integer] 2行目元号 SECOND_LINE = Aligner::SECOND_LINE # @return [Aligner] 整列結果 SUMMARY = Aligner.new(resources: Resource::LIST) # # 指定した範囲内の元号を取得する # # @param [Integer] line 行 # @param [Western::Calendar] start_date 開始日 # @param [Western::Calendar] last_date 終了日 # # @return [Array<LinearGengou>] 元号 # def self.get(line: FIRST_LINE, start_date: Western::Calendar.new, last_date: Western::Calendar.new) SUMMARY.get(line: line, start_date: start_date, last_date: last_date) end # # 指定した範囲内の元号を取得する(元号名) # # @param [Integer] line 行 # @param [String] name 元号名 # # @return [Array<LinearGengou>] 元号 # def self.get_by_name(line: FIRST_LINE, name:) SUMMARY.get_by_name(line: line, name: name) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zakuro-0.7.2 | lib/zakuro/era/japan/gengou/alignment.rb |
zakuro-0.7.0 | lib/zakuro/era/japan/gengou/alignment.rb |