Bugs item #14618, was opened at 2007-10-10 17:55
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=14618&group_id=494
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Dave Howell (snarke)
>Assigned to: Charlie Savage (cfis)
Summary: XML::Attr.to_h fails with more than one attribute.
Initial Comment:
I checked the most recently released version of libxml, and it's the same as
the 3.8.4 that I've been working with. The following code . . .
class XML::Attr
def to_h
inject({}) do |h,a| h[a.name] = a.value end
end
end
needs to be replaced with
class XML::Attr
def to_h
inject({}) do |h,a| h[a.name] = a.value; h end
end
end
----------------------------------------------------------------------
>Comment By: Charlie Savage (cfis)
Date: 2008-07-07 02:28
Message:
This is now fixed.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=14618&group_id=494
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel