Class: Nokogiri::XML::Document
- Inherits:
-
Object
- Object
- Nokogiri::XML::Document
- Defined in:
- lib/blindfold/xml/monkey.rb
Instance Method Summary collapse
Instance Method Details
#element(name) ⇒ Object
6 7 8 |
# File 'lib/blindfold/xml/monkey.rb', line 6 def element(name) elements(name).first end |
#elements(name) ⇒ Object
3 4 5 |
# File 'lib/blindfold/xml/monkey.rb', line 3 def elements(name) xpath("//#{name}") end |