Class: Zakuro::Calculation::Range::NamedOperationRange
- Inherits:
-
AbstractOperationRange
- Object
- AbstractOperationRange
- Zakuro::Calculation::Range::NamedOperationRange
- Defined in:
- lib/zakuro/calculation/range/named_operation_range.rb
Overview
NamedOperationRange 運用結果範囲
Constant Summary collapse
Instance Attribute Summary
Attributes inherited from AbstractOperationRange
#context, #operated_solar_term, #years
Instance Method Summary collapse
-
#initialize(context:, start_name: INVALID_NAME, last_name: INVALID_NAME, years: []) ⇒ NamedOperationRange
constructor
初期化.
Methods inherited from AbstractOperationRange
commit, #get, move, move_into_last_year, move_into_next_year, reset_meta, resolve_month, #rewrite, rewrite_month, rewrite_year
Constructor Details
#initialize(context:, start_name: INVALID_NAME, last_name: INVALID_NAME, years: []) ⇒ NamedOperationRange
初期化
28 29 30 31 32 33 34 |
# File 'lib/zakuro/calculation/range/named_operation_range.rb', line 28 def initialize(context:, start_name: INVALID_NAME, last_name: INVALID_NAME, years: []) scroll = Gengou::NamedScroll.new( start_name: start_name, last_name: last_name, operated: true ) super(context: context, scroll: scroll, years: years) end |