new

new(type = nil, *items) Class Public methods Creates a new list of type with items. Valid list types are: :BULLET, :LABEL, :LALPHA, :NOTE, :NUMBER, :UALPHA

validates_format_of

validates_format_of(*attr_names) Instance Public methods Validates whether the value of the specified attribute is of the correct form, going by the regular expression provided.You can require that the attribute matches the regular expression: class Person < ActiveRecord::Base validates_format_of :email, with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i, on: :create end Alternatively, you can require that the specified attribute does not match the regular expression: class

indent

indent(amount, indent_string=nil, indent_empty_lines=false) Instance Public methods Indents the lines in the receiver: <<EOS.indent(2) def some_method some_code end EOS # => def some_method some_code end The second argument, indent_string, specifies which indent string to use. The default is nil, which tells the method to make a guess by peeking at the first indented line, and fallback to a space if there is none. " foo".indent(2) # => " foo" "foo\

pre_input_hook

Readline.pre_input_hook â proc Class Public methods Returns a Proc object proc to call after the first prompt has been printed and just before readline starts reading input characters. The default is nil. Raises SecurityError if $SAFE is 4.

gzip

gzip(data) Class Public methods Zlib::GzipWriter wrapper that zips data.

signature

signature() Instance Public methods The parameters in the signature may have reserved Ruby words, in order to prevent errors, we start each param name with `_`. Extended in activerecord-deprecated_finders

hide

hide(idx) Instance Public methods

paths

paths() Class Public methods DOC: needs doc'd or :nodoc'd

respond_to?

respond_to?(method, include_private_methods = false) Instance Public methods Also aliased as: respond_to_without_attributes?

truncate

truncate(string, width) Instance Public methods