Method: FuPeg::Parser#with_cut_point
- Defined in:
- lib/fupeg/parser.rb
#with_cut_point ⇒ Object
for use with cut! and cont?
103 104 105 106 107 108 109 110 111 |
# File 'lib/fupeg/parser.rb', line 103 def with_cut_point prev_cut = @cut @cut = CutPoint.new prev_cut.next = @cut yield @cut ensure prev_cut.next = nil @cut = prev_cut end |