Method: REXML::Parsers::XPathParser#parse
- Defined in:
- lib/rexml/parsers/xpathparser.rb
#parse(path) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/rexml/parsers/xpathparser.rb', line 19 def parse path path = path.dup path.gsub!(/([\(\[])\s+/, '\1') # Strip ignorable spaces path.gsub!( /\s+([\]\)])/, '\1') parsed = [] OrExpr(path, parsed) parsed end |