match(pattern, cons=false)
public
Hide source
# File lib/rexml/source.rb, line 100 def match(pattern, cons=false) md = pattern.match(@buffer) @buffer = $' if cons and md return md end