ruby_exec

ruby_exec(file) Instance Public methods

tcp_server_sockets

tcp_server_sockets(host=nil, port) Class Public methods creates TCP/IP server sockets for host and port. host is optional. If no block given, it returns an array of listening sockets. If a block is given, the block is called with the sockets. The value of the block is returned. The socket is closed when this method returns. If port is 0, actual port number is chosen dynamically. However all sockets in the result has same port number. # tcp_server_sockets returns two sockets. socket

zone=

zone=(time_zone) Class Public methods Sets Time.zone to a TimeZone object for the current request/thread. This method accepts any of the following: A Rails TimeZone object. An identifier for a Rails TimeZone object (e.g., âEastern Time (US & Canada)â, -5.hours). A TZInfo::Timezone object. An identifier for a TZInfo::Timezone object (e.g., âAmerica/New_Yorkâ). Here's an example of how you might set Time.zone on a per request basis and reset it when the request is done.

root

root(options = {}) Instance Public methods You can specify what Rails should route â/â to with the root method: root to: 'pages#main' For options, see match, as root uses it internally. You can also pass a string which will expand root 'pages#main' You should put the root route at the top of config/routes.rb, because this means it will be matched first. As this is the most popular route of most Rails applications, this is beneficial.

quoted_true

quoted_true() Instance Public methods

sub_cget

sub_cget(win, subwidget) Class Public methods

service

service(req, res) Instance Public methods Dispatches to a do_ method based on req if such a method is available. (do_GET for a GET request). Raises a MethodNotAllowed exception if the method is not implemented.

logout

logout() Instance Public methods Sends a LOGOUT command to inform the server that the client is done with the connection.

start_processing

start_processing(event) Instance Public methods

eval_cmd

eval_cmd(p1, *args) Class Public methods