ext/xml/libxml.rb in libxml-ruby-0.3.8.4 vs ext/xml/libxml.rb in libxml-ruby-0.5.0

- old
+ new

@@ -1,6 +1,6 @@ -# $Id: libxml.rb,v 1.5.2.1 2006/11/26 12:37:42 roscopeco Exp $ +# $Id: libxml.rb 120 2006-11-26 12:57:56Z roscopeco $ # Please see the LICENSE file for copyright and distribution information require 'xml/libxml_so' class XML::Document include Enumerable @@ -10,11 +10,11 @@ find('//*').each(&blk) end end class XML::Node::Set - include Enumerable - + include Enumerable + # inefficient, but maybe can find a way to cache the # ary and dump on change? def [](i, count = nil) if count to_a[i,count]