assert

assert(exp, msg=None) Class Public methods

component_widget

component_widget(name) Instance Public methods Alias for: component_path

close

close() Instance Public methods

[]

big[n] â 0, 1 Instance Public methods Bit ReferenceâReturns the nth bit in the (assumed) binary representation of big, where big is the least significant bit. a = 9**15 50.downto(0) do |n| print a[n] end produces: 000101110110100000111000011110010100111100010111001

new

new(f) Class Public methods

wrapIndent

wrapIndent(txt, *args) Class Public methods

date=

date=(date) Instance Public methods The date this gem was created DO NOT set this, it is set automatically when the gem is packaged.

checkin

checkin(conn) Instance Public methods Check-in a database connection back into the pool, indicating that you no longer need this connection. conn: an AbstractAdapter object, which was obtained by earlier by calling checkout on this pool.

read_body

read_body(dest = nil, &block) Instance Public methods Gets the entity body returned by the remote HTTP server. If a block is given, the body is passed to the block, and the body is provided in fragments, as it is read in from the socket. Calling this method a second or subsequent time for the same HTTPResponse object will return the value already read. http.request_get('/index.html') {|res| puts res.read_body } http.request_get('/index.html') {|res| p res.read_body.object_

phase

cmp.phase â float Instance Public methods Returns the angle part of its polar form. Complex.polar(3, Math::PI/2).arg #=> 1.5707963267948966