Class: DBus::IntrospectXMLParser::AbstractXML

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

Direct Known Subclasses

NokogiriParser, REXMLParser

Defined Under Namespace

Classes: Node

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml) ⇒ Object

This method is abstract.


# File 'lib/dbus/xml.rb', line 37

Class Method Details

.have_nokogiri?Boolean

This method is abstract.

yields nodes which match xpath of type AbstractXML::Node

Returns:

  • (Boolean)


44
45
46
# File 'lib/dbus/xml.rb', line 44

def self.have_nokogiri?
  Object.const_defined?("Nokogiri")
end

Instance Method Details

#each(xpath) ⇒ Object

This method is abstract.

yields nodes which match xpath of type AbstractXML::Node



44
45
46
# File 'lib/dbus/xml.rb', line 44

def self.have_nokogiri?
  Object.const_defined?("Nokogiri")
end