Method: StreamParser#gobble

Defined in:
lib/stream_parser.rb

#gobble(r) ⇒ Object



50
51
52
53
54
55
# File 'lib/stream_parser.rb', line 50

def gobble(r)
  m = @source.match(r, @index)
  if m&.begin(0) == @index
    scan_until(r)
  end
end