in_groups

in_groups(number, fill_with = nil) Instance Public methods Splits or iterates over the array in number of groups, padding any remaining slots with fill_with unless it is false. %w(1 2 3 4 5 6 7 8 9 10).in_groups(3) {|group| p group} ["1", "2", "3", "4"] ["5", "6", "7", nil] ["8", "9", "10", nil] %w(1 2 3 4 5 6 7 8 9 10).in_groups(3, ' ') {|group| p group} ["1", "2", "3", "4"] ["5", "6", "7", " "] ["8", "9", "10", " "] %w(1 2 3 4 5 6 7).in_groups(3, fals

optionMotion1

optionMotion1(w, x, y) Instance Public methods

create

create() Instance Public methods

define_callbacks

define_callbacks(*names) Instance Public methods Define sets of events in the object life cycle that support callbacks. define_callbacks :validate define_callbacks :initialize, :save, :destroy Options :terminator - Determines when a before filter will halt the callback chain, preventing following callbacks from being called and the event from being triggered. This should be a lambda to be executed. The current object and the return result of the callback will be called with the l

request

request(req, body = nil) Instance Public methods Sends an HTTPRequest object req to the HTTP server. If req is a Net::HTTP::Post or Net::HTTP::Put request containing data, the data is also sent. Providing data for a Net::HTTP::Head or Net::HTTP::Get request results in an ArgumentError. Returns an HTTPResponse object. When called with a block, passes an HTTPResponse object to the block. The body of the response will not have been read yet; the block can process it using Net::HTTPRes

redither

redither() Instance Public methods

field_set_tag

field_set_tag(legend = nil, options = nil, &block) Instance Public methods Creates a field set for grouping HTML form elements. legend will become the fieldset's title (optional as per W3C). options accept the same values as tag. Examples <%= field_set_tag do %> <p><%= text_field_tag 'name' %></p> <% end %> # => <fieldset><p><input id="name" name="name" type="text" /></p></fieldset> <%= field_set_tag 'Your det

parent

parent(win) Class Public methods

serve

serve(io) Instance Public methods

authenticate

authenticate(auth_type, *args) Instance Public methods Sends an AUTHENTICATE command to authenticate the client. The auth_type parameter is a string that represents the authentication mechanism to be used. Currently Net::IMAP supports authentication mechanisms: LOGIN:: login using cleartext user and password. CRAM-MD5:: login with cleartext user and encrypted password (see [RFC-2195] for a full description). This mechanism requires that the server have the us