pretty() in Ruby
Prettify (indent) an HTML string
Read tutorialTHE TUTORIAL LIBRARY
Prettify (indent) an HTML string
Read tutorialParse an HTTP query string into a hash of key=>value pairs.
Read tutorialIf the CGI object is not created in a standard CGI call environment (that is, it can't locate REQUEST_METHOD in its environment), then it will run in "offline" mode. In this mode,
Read tutorialEscape special characters in HTML
Read tutorialTakes an element or elements or array of elements. Each element is specified by the name of the element, without angle brackets. This matches both the start and the end tag of that
Read tutorialURL-encode a string.
Read tutorialCGI is a large class, providing several categories of methods, many of which are mixed in from other modules. Some of the documentation is in this class, some in the modules CGI::Q
Read tutorialSometimes benchmark results are skewed because code executed earlier encounters different garbage collection overheads than that run later. bmbm attempts to minimize this effect by
Read tutorialA simple interface to the benchmark method, bm is generates sequential reports with labels. The parameters have the same meaning as for benchmark.
Read tutorialInvokes the block with a Benchmark::Report object, which may be used to collect and report on the results of individual benchmark tests. Reserves label_width leading spaces for lab
Read tutorialThe Benchmark module provides methods to measure and report the time used to execute Ruby code.
Read tutorialThe Base64 module provides for the encoding (encode64) and decoding (decode64) of binary data using a Base64 representation.
Read tutorialOne example today. A better developer tomorrow.