Method: Textbringer::Buffer#to_s

Defined in:
lib/textbringer/buffer.rb

#to_sObject



438
439
440
441
442
# File 'lib/textbringer/buffer.rb', line 438

def to_s
  result = (@contents[0...@gap_start] + @contents[@gap_end..-1])
  result.force_encoding(Encoding::UTF_8) unless @binary
  result
end