header_convert

header_convert( name )header_convert { |field| ... }header_convert { |field, field_info| ... } Instance Public methods Identical to #convert, but for header rows. Note that this method must be called before header rows are read to have any effect.

new

CGI.new(tag_maker) { block }CGI.new(options_hash = {}) { block } Class Public methods Create a new CGI instance. tag_maker This is the same as using the options_hash form with the value { :tag_maker => tag_maker } Note that it is recommended to use the options_hash form, since it also allows you specify the charset you will accept. options_hash A Hash that recognizes two options: :accept_charset specifies encoding of received query string. If omitted, @@accept_charset

supports_savepoints?

supports_savepoints?() Instance Public methods

<=>

<=>(other) Instance Public methods Use the time in UTC for comparisons.

addtag

addtag(tag, index1, index2=None) Instance Public methods Alias for: tag_add

set_encoding

ARGF.set_encoding(ext_enc) â ARGFARGF.set_encoding("ext_enc:int_enc") â ARGFARGF.set_encoding(ext_enc, int_enc) â ARGFARGF.set_encoding("ext_enc:int_enc", opt) â ARGFARGF.set_encoding(ext_enc, int_enc, opt) â ARGF Instance Public methods If single argument is specified, strings read from ARGF are tagged with the encoding specified. If two encoding names separated by a colon are given, e.g. âascii:utf-8â, the read string is converted from the first encodi

mutex

mutex() Instance Public methods

glob

Dir.glob( pattern, [flags] ) â arrayDir.glob( pattern, [flags] ) {| filename | block } â nil Class Public methods Returns the filenames found by expanding pattern which is an Array of the patterns or the pattern String, either as an array or as parameters to the block. Note that this pattern is not a regexp (it's closer to a shell glob). See File::fnmatch for the meaning of the flags parameter. Note that case sensitivity depends on your system (so File::FNM_CASEFOLD is ignored),

delete

Dir.delete( string ) â 0 Class Public methods Deletes the named directory. Raises a subclass of SystemCallError if the directory isn't empty.

subdomain

subdomain(tld_length = @@tld_length) Instance Public methods Returns all the subdomains as a string, so "dev.www" would be returned for âdev.www.rubyonrails.orgâ. You can specify a different tld_length, such as 2 to catch "www" instead of "www.rubyonrails" in âwww.rubyonrails.co.ukâ.