:api: private
# File lib/merb-core/rack/stream_wrapper.rb, line 38 def ==(other) @body == other end
:api: private
# File lib/merb-core/rack/stream_wrapper.rb, line 11 def each(&callback) if Proc === @body @writer = lambda { |x| callback.call(x) } @body.call(self) elsif @body.is_a?(String) @body.each_line(&callback) elsif @body.nil? @body.to_s.each_line(&callback) elsif @body.is_a?(Integer) @body.to_s.each_line(&callback) else @body.each(&callback) end end
:api: private
# File lib/merb-core/rack/stream_wrapper.rb, line 43 def method_missing(sym, *args, &blk) @body.send(sym, *args, &blk) end
Generated with the Darkfish Rdoc Generator 2.