Class: Hpath::Parser
- Inherits:
-
Object
- Object
- Hpath::Parser
- Defined in:
- lib/hpath/parser.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.parse(string) ⇒ Object
4 5 6 |
# File 'lib/hpath/parser.rb', line 4 def self.parse(string) self.new.parse(string) end |
Instance Method Details
#parse(string) ⇒ Object
8 9 10 |
# File 'lib/hpath/parser.rb', line 8 def parse(string) transform(normalize(parser.parse(string))) end |