Class: When::Parts::Enumerator::Integrated
- Inherits:
-
When::Parts::Enumerator
- Object
- Enumerator
- When::Parts::Enumerator
- When::Parts::Enumerator::Integrated
- Defined in:
- lib/when_exe/parts/enumerator.rb
Overview
複数の下位 Enumerator の結果を順に取り出す Enumerator
Instance Attribute Summary collapse
-
#enumerators ⇒ Array<When::Parts::Enumerator>
readonly
下位 Enumerator.
Attributes inherited from When::Parts::Enumerator
#count, #count_limit, #current, #direction, #exdate, #first, #index, #last, #object, #options, #parent, #processed
Instance Method Summary collapse
-
#initialize(parent, enumerators, first, count_limit = nil) ⇒ Integrated
constructor
オブジェクトの生成.
-
#rewind ⇒ rewind された self
巻き戻す.
Methods inherited from When::Parts::Enumerator
_options, #_rewind, #each, #exclude_end, #has_next?, #next, #succ, #with_index, #with_object
Constructor Details
#initialize(parent, enumerators, first, count_limit = nil) ⇒ Integrated
オブジェクトの生成
470 471 472 473 474 |
# File 'lib/when_exe/parts/enumerator.rb', line 470 def initialize(*args) parent, @enumerators, *rest = args raise ArgumentError, "Too few arguments" unless @enumerators.kind_of?(::Array) super(parent, *rest) end |
Instance Attribute Details
#enumerators ⇒ Array<When::Parts::Enumerator>
下位 Enumerator
444 445 446 |
# File 'lib/when_exe/parts/enumerator.rb', line 444 def enumerators @enumerators end |
Instance Method Details
#rewind ⇒ rewind された self
巻き戻す
452 453 454 455 456 457 |
# File 'lib/when_exe/parts/enumerator.rb', line 452 def rewind @enumerators.each do |enum| enum._rewind end super end |