lib/formulary/view.rb
def with_output_buffer(buf = nil) #:nodoc:
      unless buf
        buf = ""
        buf.force_encoding(output_buffer.encoding) if output_buffer
      end
      self.output_buffer, old_buffer = buf, output_buffer
      yield
      output_buffer
    ensure
      self.output_buffer = old_buffer
    end
# Use an alternate output buffer for the duration of the block.
# Defaults to a new empty string.
Use an alternate output buffer for the duration of the block.
Defaults to a new empty string.
Use an alternate output buffer for the duration of the block . Defaults to a new empty string .
def with_output_buffer(buf = nil) 
      unless buf
        buf = ""
        buf.force_encoding(output_buffer.encoding) if output_buffer
      end
      self.output_buffer, old_buffer = buf, output_buffer
      yield
      output_buffer
    ensure
      self.output_buffer = old_buffer
    end
def with_output_buffer ( buf = nil ) unless buf buf = "" buf . force_encoding ( output_buffer . encoding ) if output_buffer end self . output_buffer , old_buffer = buf , output_buffer yield output_buffer ensure self . output_buffer = old_buffer end
Use an alternate output buffer for the duration of the block.
Use an alternate output buffer for the duration of the block .
#:nodoc:
buf