Class: DBus::IntrospectXMLParser::NokogiriParser::NokogiriNode

Inherits:
AbstractXML::Node show all
Defined in:
lib/dbus/xml.rb

Instance Method Summary collapse

Methods inherited from AbstractXML::Node

#initialize

Constructor Details

This class inherits a constructor from DBus::IntrospectXMLParser::AbstractXML::Node

Instance Method Details

#[](key) ⇒ Object



59
60
61
# File 'lib/dbus/xml.rb', line 59

def [](key)
  @node[key]
end

#each(path, &block) ⇒ Object



63
64
65
# File 'lib/dbus/xml.rb', line 63

def each(path, &block)
  @node.search(path).each { |node| block.call NokogiriNode.new(node) }
end