Sha256: 519703dfb392a36f50e25cefbe8a3cdd4f4b488149c87b0c5aa715c281c0a1aa

Contents?: true

Size: 879 Bytes

Versions: 1

Compression:

Stored size: 879 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 暦コンテキスト
        # @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

1 entries across 1 versions & 1 rubygems

Version Path
zakuro-0.7.0 lib/zakuro/calculation/range/dated_full_range.rb