Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[yorickpeterse in oga]$ pry -r ./lib/oga
2.1.2p95 > Oga::XPath::Parser.new('/div[@class="container"]/div[@class="review"]').parse
=> (xpath
(path
(name nil "div")
(eq
(axis "attribute" "class")
(string "container")))
(path
(name nil "div")
(eq
(axis "attribute" "class")
(string "review"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.