| Class | LibXML::XML::Node::Set |
| In: |
ext/libxml/ruby_xml_node.c
lib/libxml/node_set.rb |
| Parent: | Object |
inefficient, but maybe can find a way to cache the ary and dump on change?
# File lib/libxml/node_set.rb, line 13
13: def [](i, count = nil)
14: if count
15: to_a[i,count]
16: else
17: to_a[i]
18: end
19: end
Determine whether this nodeset is empty (contains no nodes).
/*
* call-seq:
* nodeset.empty? -> (true|false)
*
* Determine whether this nodeset is empty (contains no nodes).
*/
VALUE
ruby_xml_node_set_empty_q(VALUE self) {
Obtain an array of the nodes in this set.
/*
* call-seq:
* nodeset.to_a -> [node, ..., node]
*
* Obtain an array of the nodes in this set.
*/
VALUE
ruby_xml_node_set_to_a(VALUE self) {