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



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

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

#each(path, &block) ⇒ Object



68
69
70
# File 'lib/dbus/xml.rb', line 68

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