Results for: "remove_const"

No documentation available

Creates a shallow copy of self.

d = Document.new "<a><b/><b/><c><d/></c></a>"
new_a = d.root.clone
puts new_a  # => "<a/>"

Get an array of all Comment children. IMMUTABLE

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Inherited from Encoding Overridden to support optimized en/decoding

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Finds and returns the first node that matches the supplied xpath.

element

The context element

path

The xpath to search for. If not supplied or nil, returns the first node matching ‘*’.

namespaces

If supplied, a Hash which defines a namespace mapping.

variables

If supplied, a Hash which maps $variables in the query to values. This can be used to avoid XPath injection attacks or to automatically handle escaping string values.

XPath.first( node )
XPath.first( doc, "//b"} )
XPath.first( node, "a/x:b", { "x"=>"http://doofus" } )
XPath.first( node, '/book/publisher/text()=$publisher', {}, {"publisher"=>"O'Reilly"})

Performs a depth-first (document order) XPath search, and returns the first match. This is the fastest, lightest way to return a single result.

FIXME: This method is incomplete!

No documentation available
No documentation available
No documentation available
No documentation available

Whether this specification is stubbed - i.e. we have information about the gem from a stub line, without having to evaluate the entire gemspec file.

Search took: 5ms  ·  Total Results: 3851