invert

ENV.invert â Hash Class Public methods Returns a new hash created by using environment variable names as values and values as names.

yield

prc.call(params,...) â objprc[params,...] â objprc.(params,...) â obj Instance Public methods Invokes the block, setting the block's parameters to the values in params using something close to method calling semantics. Generates a warning if multiple values are passed to a proc that expects just one (previously this silently converted the parameters to an array). Note that prc.() invokes prc.call() with the parameters given. It's a syntax sugar to hide âcallâ. For

button_to

button_to(name = nil, options = nil, html_options = nil, &block) Instance Public methods Generates a form containing a single button that submits to the URL created by the set of options. This is the safest method to ensure links that cause changes to your data are not triggered by search bots or accelerators. If the HTML button does not work with your layout, you can also consider using the link_to method with the :method modifier as described in the link_to documentation. By

hasbutton?

hasbutton?() Instance Public methods Also aliased as: has_button?

udp_server_recv

Socket.udp_server_recv(sockets) {|msg, msg_src| ... } Class Public methods Receive UDP/IP packets from the given sockets. For each packet received, the block is called. The block receives msg and msg_src. msg is a string which is the payload of the received packet. msg_src is a Socket::UDPSource object which is used for reply. ::udp_server_loop can be implemented using this method as follows. udp_server_sockets(host, port) {|sockets| loop { readable, _, _ = IO.select(sockets

irb_load

irb_load(fn, priv = nil) Instance Public methods Loads the given file similarly to Kernel#load

next!

next!() Instance Public methods

lock

lock(locks = true) Instance Public methods Specifies locking settings (default to true). For more information on locking, please see ActiveRecord::Locking.

lang

lang( language ) Class Public methods UNTESTED

winfo_atom

winfo_atom(name) Instance Public methods