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



85
86
87
# File 'lib/dbus/xml.rb', line 85

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

#each(path, &block) ⇒ Object



89
90
91
# File 'lib/dbus/xml.rb', line 89

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