accept_paragraph

accept_paragraph(paragraph) Instance Public methods Adds paragraph to the output

since

since(seconds) Instance Public methods Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) and then adds the specified number of seconds in

xml_http_request?

xml_http_request?() Instance Public methods Returns true if the âX-Requested-Withâ header contains âXMLHttpRequestâ (case-insensitive). All major JavaScript libraries send this header with every Ajax request. xhr?

sequence_name=

sequence_name=(value) Instance Public methods Sets the name of the sequence to use when generating ids to the given value, or (if the value is nil or false) to the value returned by the given block. This is required for Oracle and is useful for any database which relies on sequences for primary key generation. If a sequence name is not explicitly set when using Oracle or Firebird, it will default to the commonly used pattern of: #{table_name}_seq If a sequence name is not explicitl

new

Class.new(super_class=Object) â a_classClass.new(super_class=Object) { |mod| ... } â a_class Class Public methods Creates a new anonymous (unnamed) class with the given superclass (or Object if no parameter is given). You can give a class a name by assigning the class object to a constant. If a block is given, it is passed the class object, and the block is evaluated in the context of this class using class_eval. fred = Class.new do def meth1 "hello" end de

to_a

ENV.to_a â Array Class Public methods Converts the environment variables into an array of names and value arrays. ENV.to_a # => [["TERM", "xterm-color"], ["SHELL", "/bin/bash"], ...]

open

open(printer) Class Public methods

number_to_human_size

number_to_human_size(number, options = {}) Instance Public methods Formats the bytes in number into a more understandable representation (e.g., giving it 1500 yields 1.5 KB). This method is useful for reporting file sizes to users. You can customize the format in the options hash. See number_to_human if you want to pretty-print a generic number. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :precision - Sets the precision of the number

__keyonly_optkeys

__keyonly_optkeys() Instance Public methods

_conv_listelement

_conv_listelement(str) Instance Public methods