scrolling_list

scrolling_list(name = "", *values) Instance Public methods Alias for: popup_menu

render_to_string_with_assigns

render_to_string_with_assigns() Instance Public methods

try

try(*a, &b) Instance Public methods Invokes the public method whose name goes as first argument just like public_send does, except that if the receiver does not respond to it the call returns nil rather than raising an exception. This method is defined to be able to write @person.try(:name) instead of @person ? @person.name : nil try returns nil when called on nil regardless of whether it responds to the method: nil.try(:to_i) # => nil, rather than 0 Arguments and blocks

size

sdbm.size â integer Instance Public methods Returns the number of keys in the database.

l

l() Instance Public methods

test_alt_becomes_works_with_sti

test_alt_becomes_works_with_sti() Instance Public methods

new

new(conflict) Class Public methods

listen

socket.listen( int ) => 0 Instance Public methods Listens for connections, using the specified int as the backlog. A call to listen only applies if the socket is of type SOCK_STREAM or SOCK_SEQPACKET. Parameter backlog - the maximum length of the queue for pending connections. Example 1 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 ) E

[]=

hsh[key] = value â value Instance Public methods Element Assignment Associates the value given by value with the key given by key. h = { "a" => 100, "b" => 200 } h["a"] = 9 h["c"] = 4 h #=> {"a"=>9, "b"=>200, "c"=>4} key should not have its value changed while it is in use as a key (an unfrozen String passed as a key will be duplicated and frozen). a = "a" b = "b".freeze h = { a => 100, b => 200 } h.key(100).equal? a #=> false h.key(200).equal?

to_feed

to_feed(*args) Instance Public methods