class CooCoo::Transformers::Combo
Public Class Methods
new(src, other, &op)
click to toggle source
Calls superclass method
# File lib/coo-coo/transformer.rb, line 72 def initialize(src, other, &op) @src = src @other = other @op = op super() do |yielder| loop do yielder << self.next end end end
Public Instance Methods
next()
click to toggle source
# File lib/coo-coo/transformer.rb, line 84 def next @op.call(@src.next, @other.next) end