new

new(config={}, default=Config::HTTP) Class Public methods Proxy server configurations. The proxy server handles the following configuration items in addition to those supported by HTTPServer: :ProxyAuthProc Called with a request and response to authorize a request :ProxyVia Appended to the via header :ProxyURI The proxy server's URI :ProxyContentHandler Called with a request and response and allows modification of the response :ProxyTimeout Sets the proxy timeouts to

open

Zlib::GzipWriter.open(filename, level=nil, strategy=nil) { |gz| ... } Class Public methods Opens a file specified by filename for writing gzip compressed data, and returns a GzipWriter object associated with that file. Further details of this method are found in ::new and Zlib::GzipFile.wrap.

get

get(*index) Instance Public methods

wait

Process.wait() â fixnumProcess.wait(pid=-1, flags=0) â fixnumProcess.waitpid(pid=-1, flags=0) â fixnum Class Public methods Waits for a child process to exit, returns its process id, and sets $? to a Process::Status object containing information on that process. Which child it waits on depends on the value of pid: > 0 Waits for the child whose process ID equals pid. 0 Waits for any child whose process group ID equals that of the calling process.

accept_verbatim

accept_verbatim(verbatim) Instance Public methods Adds verbatim to the output

find_all_tag

find_all_tag(conditions) Instance Public methods

scan

str.scan(pattern) â arraystr.scan(pattern) {|match, ...| block } â str Instance Public methods Both forms iterate through str, matching the pattern (which may be a Regexp or a String). For each match, a result is generated and either added to the result array or passed to the block. If the pattern contains no groups, each individual result consists of the matched string, $&. If the pattern contains groups, each individual result is itself an array co

css_select

css_select(*args) Instance Public methods Select and return all matching elements. If called with a single argument, uses that argument as a selector to match all elements of the current page. Returns an empty array if no match is found. If called with two arguments, uses the first argument as the base element and the second argument as the selector. Attempts to match the base element and any of its children. Returns an empty array if no match is found. The selector may be a CSS se

absolute

absolute() Instance Public methods Alias for: absolute?

test

test(command, file1, file2) â true or false[command, file1, file2] â true or false Instance Public methods Tests if the given command exists in file1, or optionally file2. Example: sh[?e, "foo"] sh[:e, "foo"] sh["e", "foo"] sh[:exists?, "foo"] sh["exists?", "foo"] top_level_test []