Method: Textbringer::Buffer#byte_before

Defined in:
lib/textbringer/buffer.rb

#byte_before(location = @point) ⇒ Object



456
457
458
459
460
461
462
# File 'lib/textbringer/buffer.rb', line 456

def byte_before(location = @point)
  if location <= point_min || location > point_max
    nil
  else
    byte_after(location - 1)
  end
end