LibXML::XML::

Object

class
Superclass
Object

Public Instance Methods

anchor
inspect()
# File lib/libxml/monkeypatches.rb, line 92
def inspect
        return "#<%p:%#016x %s:%s [%d nodes]>" % [
                self.class,
                self.object_id * 2,
                self.string || "''",
                self.xpath_type_name,
                self.length,
        ]
end
anchor
xpath_type_name()
# File lib/libxml/monkeypatches.rb, line 102
def xpath_type_name
        return case self.xpath_type
                when LibXML::XML::XPath::UNDEFINED
                        "undefined"
                when LibXML::XML::XPath::NODESET
                        "nodeset"
                when LibXML::XML::XPath::BOOLEAN
                        "boolean"
                when LibXML::XML::XPath::NUMBER
                        "number"
                when LibXML::XML::XPath::STRING
                        "string"
                when LibXML::XML::XPath::POINT
                        "point"
                when LibXML::XML::XPath::RANGE
                        "range"
                when LibXML::XML::XPath::LOCATIONSET
                        "locationset"
                when LibXML::XML::XPath::USERS
                        "users"
                when LibXML::XML::XPath::XSLT_TREE
                        "xslt_tree"
                else
                        nil
                end
end