number_to_human_size

number_to_human_size(number, options = {}) Instance Public methods Formats the bytes in number into a more understandable representation (e.g., giving it 1500 yields 1.5 KB). This method is useful for reporting file sizes to users. You can customize the format in the options hash. See number_to_human if you want to pretty-print a generic number. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :precision - Sets the precision of the number

codepage=

WIN32OLE.codepage = CP Class Public methods Sets current codepage. The ::codepage is initialized according to Encoding.default_internal. If Encoding.default_internal is nil then ::codepage is initialized according to Encoding.default_external. WIN32OLE.codepage = WIN32OLE::CP_UTF8 WIN32OLE.codepage = 65001

sysaccept

socket.sysaccept => [client_socket_fd, client_addrinfo] Instance Public methods Accepts an incoming connection returning an array containing the (integer) file descriptor for the incoming connection, client_socket_fd, and an Addrinfo, client_addrinfo. Example # In one script, start this first require 'socket' include Socket::Constants socket = Socket.new( AF_INET, SOCK_STREAM, 0 ) sockaddr = Socket.pack_sockaddr_in( 2200, 'localhost' ) socket.bind( sockaddr ) socket.listen( 5 )

accessor

accessor() Instance Public methods

list_item_start

list_item_start(list_item, list_type) Instance Public methods Returns the HTML tag for list_type, possible using a label from list_item

install_get_attribute

install_get_attribute(name, uri, required=true, type=nil, disp_name=nil, element_name=nil) Class Public methods

theme_settings

theme_settings(name, cmd=nil, &b) Class Public methods

explain

explain() Instance Public methods Runs EXPLAIN on the query or queries triggered by this relation and returns the result as a string. The string is formatted imitating the ones printed by the database shell. Note that this method actually runs the queries, since the results of some are needed by the next ones when eager loading is going on. Please see further details in the Active Record Query Interface guide.

upload

upload() Instance Public methods

setWidth

setWidth(w, width) Instance Public methods