Class: Nokogiri::XML::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/blindfold/xml/monkey.rb

Instance Method Summary collapse

Instance Method Details

#attribute_value(name) ⇒ Object



11
12
13
# File 'lib/blindfold/xml/monkey.rb', line 11

def attribute_value(name)
  attribute(name).value
end

#element(name) ⇒ Object



17
18
19
# File 'lib/blindfold/xml/monkey.rb', line 17

def element(name)
  elements(name).first
end

#elements(name) ⇒ Object



14
15
16
# File 'lib/blindfold/xml/monkey.rb', line 14

def elements(name)
  xpath(name)
end