lib/zakuro/era/japan/gengou/alignment/linear_gengou.rb in zakuro-0.9.4 vs lib/zakuro/era/japan/gengou/alignment/linear_gengou.rb in zakuro-1.0.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
require_relative '../../../western/calendar'
-require_relative '../resource/type'
+require_relative '../../type/base/gengou_set'
# :nodoc:
module Zakuro
# :nodoc:
module Japan
@@ -31,10 +31,10 @@
# @param [Western::Calendar] start_date 開始日
# @param [Western::Calendar] last_date 終了日
# @param [Resource::Gengou] gengou 元号
#
def initialize(start_date: Western::Calendar.new, last_date: Western::Calendar.new,
- gengou: Resource::Gengou.new)
+ gengou: Type::Base::Gengou.new)
@gengou = gengou
@start_date = start_date.invalid? ? native_start_date : start_date
@last_date = last_date.invalid? ? native_last_date : last_date
end