deactivate

deactivate() Instance Public methods

marker_before

marker_before(id, target=None) Instance Public methods

inspect

stat.inspect â string Instance Public methods Override the inspection method. system("false") p $?.inspect #=> "#<Process::Status: pid 12861 exit 1>"

fetch

fetch(set, attr) Instance Public methods Sends a FETCH command to retrieve data associated with a message in the mailbox. The set parameter is a number or an array of numbers or a Range object. The number is a message sequence number. attr is a list of attributes to fetch; see the documentation for Net::IMAP::FetchData for a list of valid attributes. The return value is an array of Net::IMAP::FetchData. For example: p imap.fetch(6..8, "UID") #=> [#<Net::IMAP::FetchData seqno

label

label(object_name, method, content_or_options = nil, options = nil, &block) Instance Public methods Returns a label tag tailored for labelling an input field for a specified attribute (identified by method) on an object assigned to the template (identified by object). The text of label will default to the attribute name unless a translation is found in the current I18n locale (through helpers.label.<modelname>.<attribute>) or you specify it explicitly. Additional op

protect_from_forgery

protect_from_forgery(options = {}) Instance Public methods Turn on request forgery protection. Bear in mind that only non-GET, HTML/JavaScript requests are checked. class ApplicationController < ActionController::Base protect_from_forgery end class FooController < ApplicationController protect_from_forgery except: :index You can disable CSRF protection on controller by skipping the verification before_action: skip_before_action :verify_authenticity_token Valid Options:

number_to_delimited

number_to_delimited(number, options = {}) Instance Public methods Formats a number with grouped thousands using delimiter (e.g., 12,324). You can customize the format in the options hash. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :delimiter - Sets the thousands delimiter (defaults to â,â). :separator - Sets the separator between the fractional and integer digits (defaults to â.â). Examples number_to_delimited(12345678)

set_eventloop_tick

set_eventloop_tick(tick) Class Public methods def ::mainloop_abort_on_exception MultiTkIp.mainloop_abort_on_exception end def ::mainloop_abort_on_exception=(mode) MultiTkIp.mainloop_abort_on_exception=(mode) end

do_GET

do_GET(req, res) Instance Public methods Raises a NotFound exception

merge

merge(other) Instance Public methods When this is a collection of documents (#file is not set and this document contains only other documents as its direct children) merge replaces documents in this class with documents from other when the file matches and adds documents from other when the files do not. The information in other is preferred over the receiver