host

host() Instance Public methods The hostname used in the last request.

read

dir.read â string or nil Instance Public methods Reads the next entry from dir and returns it as a string. Returns nil at the end of the stream. d = Dir.new("testdir") d.read #=> "." d.read #=> ".." d.read #=> "config.h"

to_a

iseq.to_a â ary Instance Public methods Returns an Array with 14 elements representing the instruction sequence with the following data: magic A string identifying the data format. Always YARVInstructionSequence/SimpleDataFormat. major_version The major version of the instruction sequence. minor_version The minor version of the instruction sequence. format_type A number identifying the data format. Always 1. misc A hash containing: :arg_size the total number of ar

w3cdtf

w3cdtf(date) Class Public methods

predicate

predicate( elements, path ) Class Public methods A predicate filters a node-set with respect to an axis to produce a new node-set. For each node in the node-set to be filtered, the PredicateExpr is evaluated with that node as the context node, with the number of nodes in the node-set as the context size, and with the proximity position of the node in the node-set with respect to the axis as the context position; if PredicateExpr evaluates to true for that node, the node is included

link_files

link_files(wildcard, dest_dir) Instance Public methods Link all files matching wildcard into the directory dest_dir.

coerce

coerce(oth) Instance Public methods Args v URI or String Description attempt to parse other URI +oth+ return [parsed_oth, self] Usage require 'uri' uri = URI.parse("http://my.example.com") uri.coerce("http://foo.com") #=> [#<URI::HTTP:0x00000000bcb028 URL:http://foo.com/>, #<URI::HTTP:0x00000000d92178 URL:http://my.example.com>]

add

add() Instance Public methods Returns a new Tms object whose times are the sum of the times for this Tms object, plus the time required to execute the code block (blk).

**

big ** exponent â numeric Instance Public methods Raises big to the exponent power (which may be an integer, float, or anything that will coerce to a number). The result may be a Fixnum, Bignum, or Float 123456789 ** 2 #=> 15241578750190521 123456789 ** 1.2 #=> 5126464716.09932 123456789 ** -2 #=> 6.5610001194102e-17 power!

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