Method: Textbringer::Buffer#byte_after
- Defined in:
- lib/textbringer/buffer.rb
#byte_after(location = @point) ⇒ Object
477 478 479 480 481 482 483 |
# File 'lib/textbringer/buffer.rb', line 477 def byte_after(location = @point) if location < @gap_start @contents.byteslice(location) else @contents.byteslice(location + gap_size) end&.force_encoding(Encoding::ASCII_8BIT) end |