Class: Zakuro::Calculation::Range::NamedFullRange
- Inherits:
-
AbstractFullRange
- Object
- AbstractFullRange
- Zakuro::Calculation::Range::NamedFullRange
- Defined in:
- lib/zakuro/calculation/range/named_full_range.rb
Overview
NamedFullRange 完全範囲
Constant Summary collapse
- INVALID_NAME =
Returns 不正元号名.
Japan::Calendar::EMPTY
Constants inherited from AbstractFullRange
Instance Attribute Summary
Attributes inherited from AbstractFullRange
#context, #last_date, #scroll, #start_date
Instance Method Summary collapse
-
#initialize(context:, start_name: INVALID_NAME, last_name: INVALID_NAME) ⇒ NamedFullRange
constructor
初期化.
Methods inherited from AbstractFullRange
Constructor Details
#initialize(context:, start_name: INVALID_NAME, last_name: INVALID_NAME) ⇒ NamedFullRange
初期化
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/zakuro/calculation/range/named_full_range.rb', line 26 def initialize(context:, start_name: INVALID_NAME, last_name: INVALID_NAME) scroll = Gengou::NamedScroll.new( start_name: start_name, last_name: last_name, operated: false, restored: false ) range = scroll.range super( context: context, scroll: scroll, start_date: range.western_start_date, last_date: range.western_last_date ) end |