Module: BufferUtils
- Included in:
- CooklangRb::Recipe, CooklangRb::Step
- Defined in:
- lib/cooklang_rb/buffer_utils.rb
Instance Method Summary collapse
Instance Method Details
#end_of_buffer? ⇒ Boolean
6 7 8 |
# File 'lib/cooklang_rb/buffer_utils.rb', line 6 def end_of_buffer? @buffer.eos? end |
#end_of_line? ⇒ Boolean
2 3 4 |
# File 'lib/cooklang_rb/buffer_utils.rb', line 2 def end_of_line? @buffer.peek(1) == "\n" end |