lib/async_partial.rb
def with_output_buffer(buf = nil) #:nodoc:
      buffer_values_was = buf.buffer_values.clone
      yield
      buffer_values_was.each {|e| buf.buffer_values.shift if buf.buffer_values[0] == e}
      buf.to_s
    ensure
      buf.buffer_values = buffer_values_was
    end
# Simply rewind what's written in the buffer
Simply rewind what's written in the buffer
Simply rewind what ' s written in the buffer
def with_output_buffer(buf = nil) 
      buffer_values_was = buf.buffer_values.clone
      yield
      buffer_values_was.each {|e| buf.buffer_values.shift if buf.buffer_values[0] == e}
      buf.to_s
    ensure
      buf.buffer_values = buffer_values_was
    end
def with_output_buffer ( buf = nil ) buffer_values_was = buf . buffer_values . clone yield buffer_values_was . each { | e | buf . buffer_values . shift if buf . buffer_values [ 0 ] == e } buf . to_s ensure buf . buffer_values = buffer_values_was end
Simply rewind what's written in the buffer
Simply rewind what ' s written in the buffer
#:nodoc:
buf