Sha256: 7c6a7375b2a92d26513f79742171f84e59ead97047b157e1c0558c1689233607

Contents?: true

Size: 929 Bytes

Versions: 1

Compression:

Stored size: 929 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, operated: false
          )

          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.9.3 lib/zakuro/calculation/range/dated_full_range.rb