connect_nonblock

socket.connect_nonblock(remote_sockaddr) => 0 Instance Public methods Requests a connection to be made on the given remote_sockaddr after O_NONBLOCK is set for the underlying file descriptor. Returns 0 if successful, otherwise an exception is raised. Parameter remote_sockaddr - the struct sockaddr contained in a string or Addrinfo object Example: # Pull down Google's web page require 'socket' include Socket::Constants socket = Socket.new(AF_INET, SOCK_STREAM, 0) sockaddr = S

deep_merge

deep_merge(other_hash, &block) Instance Public methods Returns a new hash with self and other_hash merged recursively. h1 = { a: true, b: { c: [1, 2, 3] } } h2 = { a: false, b: { x: [3, 4, 5] } } h1.deep_merge(h2) #=> { a: false, b: { c: [1, 2, 3], x: [3, 4, 5] } } Like with Hash#merge in the standard library, a block can be provided to merge values: h1 = { a: 100, b: 200, c: { c1: 100 } } h2 = { b: 250, c: { c1: 200 } } h1.deep_merge(h2) { |key, this_val, other_val| this_

candidate 2

candidate(key, icase = false, pat = nil) Instance Public methods

radio_button

radio_button(method, tag_value, options = {}) Instance Public methods Returns a radio button tag for accessing a specified attribute (identified by method) on an object assigned to the template (identified by object). If the current value of method is tag_value the radio button will be checked. To force the radio button to be checked pass checked: true in the options hash. You may pass HTML options there as well. # Let's say that @post.category returns "rails": radio_button("post",

imconfiginfo

imconfiginfo(slot=nil) Instance Public methods

_thread_vwait

_thread_vwait(var_name) Instance Public methods

time_ago_in_words

time_ago_in_words(from_time, include_seconds_or_options = {}) Instance Public methods Like distance_of_time_in_words, but where to_time is fixed to Time.now. time_ago_in_words(3.minutes.from_now) # => 3 minutes time_ago_in_words(3.minutes.ago) # => 3 minutes time_ago_in_words(Time.now - 15.hours) # => about 15 hours time_ago_in_words(Time.now) # => less than a minute time_ago_in_words(Time.now

set_rhs

set_rhs(*items) Instance Public methods

sync_point?

sync_point?() Instance Public methods Quoted verbatim from original documentation: What is this? :)