Class: Wordlist::Operators::Concat
- Inherits:
-
BinaryOperator
- Object
- Operator
- BinaryOperator
- Wordlist::Operators::Concat
- Defined in:
- lib/wordlist/operators/concat.rb
Overview
Lazily enumerates over the first wordlist, then the second.
Instance Attribute Summary
Attributes inherited from BinaryOperator
Instance Method Summary collapse
-
#each {|word| ... } ⇒ Enumerator
Enumerates over each word in both wordlists.
Methods inherited from BinaryOperator
Constructor Details
This class inherits a constructor from Wordlist::Operators::BinaryOperator
Instance Method Details
#each {|word| ... } ⇒ Enumerator
Enumerates over each word in both wordlists.
39 40 41 42 43 44 |
# File 'lib/wordlist/operators/concat.rb', line 39 def each(&block) return enum_for(__method__) unless block @left.each(&block) @right.each(&block) end |