Method: Textbringer::Buffer#char_before
- Defined in:
- lib/textbringer/buffer.rb
#char_before(location = @point) ⇒ Object
502 503 504 505 506 507 508 509 510 511 512 513 |
# File 'lib/textbringer/buffer.rb', line 502 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 |