Class: Zakuro::Calculation::Gengou::DatedScroll
- Inherits:
-
AbstractScroll
- Object
- AbstractScroll
- Zakuro::Calculation::Gengou::DatedScroll
- Defined in:
- lib/zakuro/calculation/era/gengou/dated_scroll.rb
Overview
DatedScroll
元号スクロール
Instance Attribute Summary
Attributes inherited from AbstractScroll
#connector, #first_gengou, #monthly_last_date, #monthly_start_date, #range, #second_gengou
Instance Method Summary collapse
-
#initialize(start_date: Western::Calendar.new, last_date: Western::Calendar.new, operated: false, restored: false) ⇒ DatedScroll
constructor
初期化.
Methods inherited from AbstractScroll
#advance, #ignite, #run, #to_gengou, #western_last_year, #western_start_year
Constructor Details
#initialize(start_date: Western::Calendar.new, last_date: Western::Calendar.new, operated: false, restored: false) ⇒ DatedScroll
初期化
25 26 27 28 29 30 31 32 |
# File 'lib/zakuro/calculation/era/gengou/dated_scroll.rb', line 25 def initialize(start_date: Western::Calendar.new, last_date: Western::Calendar.new, operated: false, restored: false) range = Reserve::DatedRange.new( start_date: start_date, last_date: last_date, operated: operated, restored: restored ) super(range: range) end |