Method: FuPeg::Parser#bounds
- Defined in:
- lib/fupeg/parser.rb
#bounds(lit = nil, &block) ⇒ Object
173 174 175 176 |
# File 'lib/fupeg/parser.rb', line 173 def bounds(lit = nil, &block) pos = @scan.pos match(lit, &block) && pos...@scan.pos end |