Method: Textbringer::Buffer#char_before
- Defined in:
- lib/textbringer/buffer.rb
#char_before(location = @point) ⇒ Object
473 474 475 476 477 478 479 480 481 482 483 484 |
# File 'lib/textbringer/buffer.rb', line 473 def char_before(location = @point) if @binary byte_before(location) else if beginning_of_buffer? nil else pos = get_pos(location, -1) substring(pos, location) end end end |