Is the problem with me or with the documentation?

N

Nick Brown

The Sinatra FAQ makes mention of the "escape_html()" method of
Rack::Utils. It links to the Rack::Utils documentation,
http://rack.rubyforge.org/doc/classes/Rack/Utils.html , but this page
has no mention of escape_html(). Digging into the source code of
lib/rack/utils.rb, however, I am able to find escape_html().

So my question is: why doesn't the documentation mention this method? Am
I looking in the wrong place? I expect Ruby library documentation to
often be lacking meaningful description (sadly), but this method isn't
mentioned at all! Isn't ruby documentation auto-generated from the
source code? Shouldn't that automatically cause existence of this method
be mentioned in the docs?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top