Module: Predicated::Binary::FlipThroughMe
- Included in:
- Predicated::Binary
- Defined in:
- lib/predicated/predicate.rb
Instance Method Summary collapse
Instance Method Details
#each(ancestors = []) {|[self, ancestors]| ... } ⇒ Object
51 52 53 54 55 56 |
# File 'lib/predicated/predicate.rb', line 51 def each(ancestors=[], &block) yield([self, ancestors]) ancestors_including_me = ancestors.dup + [self] enumerate_side(@left, ancestors_including_me, &block) enumerate_side(@right, ancestors_including_me, &block) end |