class Transformer::Lazy::Yielder

Public Class Methods

new(wrapped) click to toggle source
# File lib/coroutines/base.rb, line 255
def initialize(wrapped)
        @wrapped = wrapped
end

Public Instance Methods

await() click to toggle source
# File lib/coroutines/base.rb, line 258
def await
        @wrapped.await
end
define_yield(&block) click to toggle source
# File lib/coroutines/base.rb, line 262
def define_yield(&block)
        singleton_class.instance_eval do
                define_method(:yield, &block)
                alias_method :<<, :yield
        end
end