Method: REXML::Source#match

Defined in:
lib/extensions/rexml/rexml/source.rb,
lib/extensions/rhoxml/rexml/source.rb

#match(pattern, cons = false) ⇒ Object



108
109
110
111
112
# File 'lib/extensions/rexml/rexml/source.rb', line 108

def match(pattern, cons=false)
  md = pattern.match(@buffer)
  @buffer = $' if cons and md
  return md
end