accept_charset=

accept_charset=(accept_charset) Class Public methods Set the accept character set for all new CGI instances.

prepend_view_path

prepend_view_path(path) Instance Public methods

verify

verify() Instance Public methods Raises an exception if a security policy that verifies data is active. Old format gems cannot be verified as signed.

encoding=

encoding=(value) Instance Public methods

show

show(*args) Class Public methods

examine

examine(mailbox) Instance Public methods Sends a EXAMINE command to select a mailbox so that messages in the mailbox can be accessed. Behaves the same as select(), except that the selected mailbox is identified as read-only. A Net::IMAP::NoResponseError is raised if the mailbox does not exist or is for some reason non-examinable.

benchmark

benchmark(caption = "", label_width = nil, format = nil, *labels) Class Public methods Invokes the block with a Benchmark::Report object, which may be used to collect and report on the results of individual benchmark tests. Reserves label_width leading spaces for labels on each line. Prints caption at the top of the report, and uses format to format each line. Returns an array of Benchmark::Tms objects. If the block returns an array of Benchmark::Tms objects, these will be used to

benchmark

benchmark(message = "Benchmarking", options = {}) Instance Public methods Allows you to measure the execution time of a block in a template and records the result to the log. Wrap this block around expensive operations or possible bottlenecks to get a time reading for the operation. For example, let's say you thought your file processing method was taking too long; you could wrap it in a benchmark block. <% benchmark 'Process data files' do %> <%= expensive_files_operati

gridline_on

gridline_on() Instance Public methods

/ 2

div(value, digits)quo(value) Instance Public methods Divide by the specified value. e.g. c = a.div(b,n) digits If specified and less than the number of significant digits of the result, the result is rounded to that number of digits, according to ::mode. If digits is 0, the result is the same as the / operator. If not, the result is an integer BigDecimal, by analogy with Numeric#div. The alias quo is provided since div(value, 0) is the same as computing the quotient; see #di