Class: DBus::IntrospectXMLParser::REXMLParser::REXMLNode

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



78
79
80
# File 'lib/dbus/xml.rb', line 78

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

#each(path, &block) ⇒ Object



82
83
84
# File 'lib/dbus/xml.rb', line 82

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