Sha256: 0a6c1d36988b2f75817c22a5801dd170aa5ae9a7b67b8bdd75b1dd21c5c121ae

Contents?: true

Size: 888 Bytes

Versions: 5

Compression:

Stored size: 888 Bytes

Contents

# frozen_string_literal: true

require_relative '../era/gengou/dated_scroll'
require_relative './abstract_full_range'

# :nodoc:
module Zakuro
  # :nodoc:
  module Calculation
    # :nodoc:
    module Range
      #
      # DatedFullRange 完全範囲
      #
      class DatedFullRange < AbstractFullRange
        #
        # 初期化
        #
        # @param [Context::Context] context 暦コンテキスト
        # @param [Western::Calendar] start_date 開始日
        # @param [Western::Calendar] last_date 終了日
        #
        def initialize(context:,
                       start_date: Western::Calendar.new, last_date: Western::Calendar.new)
          scroll = Gengou::DatedScroll.new(start_date: start_date, last_date: last_date)

          super(context: context, scroll: scroll, start_date: start_date, last_date: last_date)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zakuro-0.9.2 lib/zakuro/calculation/range/dated_full_range.rb
zakuro-0.9.1 lib/zakuro/calculation/range/dated_full_range.rb
zakuro-0.9.0 lib/zakuro/calculation/range/dated_full_range.rb
zakuro-0.8.0 lib/zakuro/calculation/range/dated_full_range.rb
zakuro-0.7.2 lib/zakuro/calculation/range/dated_full_range.rb