On 26 mars 08, at 13:58, Luc Heinrich wrote: > 2. in lib/libxml.rb, XML::Attr#to_h is wrong: it should return the > hash (to_a methods work because Array#<< returns the array itself, > hash insertions return the inserted value).
Er, sorry, the previous patch was completely bogus, this is the correct one: --- libxml.old.rb 2008-01-27 18:01:44.000000000 +0100 +++ libxml.rb 2008-03-26 18:57:56.000000000 +0100 @@ -91,7 +91,7 @@ alias :each :each_sibling def to_h - inject({}) do |h,a| h[a.name] = a.value end + inject({}) do |h,a| h[a.name] = a.value; h end end def to_a -- Luc Heinrich - [EMAIL PROTECTED] _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel