Method: ZergXcode::ScanBuffer#match_and_advance
- Defined in:
- lib/zerg_xcode/file_format/scan_buffer.rb
#match_and_advance(pattern) ⇒ Object
39 40 41 42 43 |
# File 'lib/zerg_xcode/file_format/scan_buffer.rb', line 39 def match_and_advance(pattern) match = @string[@i..-1].match(pattern) @i += match[0].length if match match end |