Class Nokogiri::XML::NodeSet
In: lib/nokogiri/xml/node_set.rb
Parent: Object

Methods

/   <<   add_class   after   at   attr   before   css   each   empty?   first   inner_html   inner_text   last   new   remove   remove_attr   remove_class   search   set   size   text   to_ary   to_html   to_s   to_xml   unlink   wrap   xpath  

Included Modules

Enumerable

Attributes

document  [RW] 

Public Class methods

Public Instance methods

/(*paths)

Alias for search

Append node to the NodeSet.

Append the class attribute name to all Node objects in the NodeSet.

Insert datum after the last Node in this NodeSet

If path is a string, search this document for path returning the first Node. Otherwise, index in to the array with path.

Set the attribute key to value or the return value of blk on all Node objects in the NodeSet.

Insert datum before the first Node in this NodeSet

css(*paths)

Alias for search

Iterate over each node, yielding to block

Get the first element of the NodeSet.

Get the inner html of all contained Node objects

Get the inner text of all contained Node objects

Get the last element of the NodeSet.

remove()

Alias for unlink

Remove the attributed named name from all Node objects in the NodeSet

Remove the class attribute name from all Node objects in the NodeSet.

Search this document for paths

set(key, value = nil, &blk)

Alias for attr

text()

Alias for inner_text

Unlink this NodeSet and all Node objects it contains from their current context.

Wrap this NodeSet with html or the results of the builder in blk

xpath(*paths)

Alias for search

[Validate]