to_xml

to_xml(options = {}) Instance Public methods Returns a string containing an XML representation of its receiver: { foo: 1, bar: 2 }.to_xml # => # <?xml version="1.0" encoding="UTF-8"?> # <hash> # <foo type="integer">1</foo> # <bar type="integer">2</bar> # </hash> To do so, the method loops over the pairs and builds nodes that depend on the values. Given a pair key, value: If value is a hash there's a recursive call with key as :root

&lt;&lt;

digest_obj Instance Public methods Updates the digest using a given string and returns self. The update() method and the left-shift operator are overridden by each implementation subclass. (One should be an alias for the other)

new

new(gem) Class Public methods Creates a new old-format package reader for gem. Old-format packages cannot be written.

do_GET

do_GET(req, res) Instance Public methods Raises a NotFound exception

_url_for_modules

_url_for_modules() Instance Public methods

new

new() Class Public methods

deflate

Zlib.deflate(string[, level])Zlib::Deflate.deflate(string[, level]) Class Public methods Compresses the given string. Valid values of level are Zlib::NO_COMPRESSION, Zlib::BEST_SPEED, Zlib::BEST_COMPRESSION, Zlib::DEFAULT_COMPRESSION, or an integer from 0 to 9 (the default is 6). This method is almost equivalent to the following code: def deflate(string, level) z = Zlib::Deflate.new(level) dst = z.deflate(string, Zlib::FINISH) z.close dst end See also Zlib.inflate

send_data

send_data(data, options = {}) Instance Protected methods Sends the given binary data to the browser. This method is similar to render plain: data, but also allows you to specify whether the browser should display the response as a file attachment (i.e. in a download dialog) or as inline data. You may also set the content type, the apparent file name, and other things. Options: :filename - suggests a filename for the browser to use. :type - specifies an HTTP content type. Default

formatted_xml_erb

formatted_xml_erb() Instance Public methods

xhtml

xhtml() Instance Public methods