Bugs item #26888, was opened at 2009-08-07 04:46
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=26888&group_id=494

Category: General
Group: v0.5
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Lars Haugseth (lhz)
>Assigned to: Charlie Savage (cfis)
Summary: Error in documentation of XML::Document#to_s

Initial Comment:
Documentation for the method XML::Document#to_s includes
the following example:

 document.to_s(:indent => true, :encoding => 'UTF-8') → "string"

This doesn't work. The correct way (mentioned in the body of
the method documentation) is:

 document.to_s(:indent => true, :encoding => XML::Encoding::UTF8) → "string"



----------------------------------------------------------------------

>Comment By: Charlie Savage (cfis)
Date: 2011-04-22 23:47

Message:
Hi Lars,

Thanks - fixed in trunk.

Charlie

----------------------------------------------------------------------

Comment By: Lars Haugseth (lhz)
Date: 2009-08-07 05:07

Message:
EDIT:

There's another error in the body documentation. The correct
constant is actually XML::Encoding::UTF_8. Note the
underscore, which is missing in the documentation.


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=26888&group_id=494
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to