Method: HParser::Util::LineScanner#scan

Defined in:
lib/hparser/util/line_scanner.rb

#scan(exp) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/hparser/util/line_scanner.rb', line 13

def scan(exp)
  @matched_pattern = nil
  if match?(exp) then
    @matched = @lines.shift
  else
    nil
  end
end