rstrip

str.rstrip â new_str Instance Public methods Returns a copy of str with trailing whitespace removed. See also String#lstrip and String#strip. " hello ".rstrip #=> " hello" "hello".rstrip #=> "hello"

content_type

content_type() Instance Public methods

valid?

valid?(context = nil) Instance Public methods Runs all the validations within the specified context. Returns true if no errors are found, false otherwise. If the argument is false (default is nil), the context is set to :create if new_record? is true, and to :update if it is not. Validations with no :on option will run no matter the context. Validations with some :on option will only run in the specified context.

maximum

maximum(column_name, options = {}) Instance Public methods Calculates the maximum value on a given column. The value is returned with the same data type of the column, or nil if there's no row. See calculate for examples with options. Person.maximum(:age) # => 93

cp

cp() Instance Public methods Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY ruby -run -e cp -- [OPTION] SOURCE DEST -p preserve file attributes if possible -r copy recursively -v verbose

offset

offset() Instance Public methods

elementdecl

elementdecl(content) Instance Public methods <!ELEMENT â¦>

enable_starttls_auto

enable_starttls_auto(context = SMTP.default_ssl_context) Instance Public methods Enables SMTP/TLS (STARTTLS) for this object if server accepts. context is a OpenSSL::SSL::SSLContext object.

__define_wrapper_proc_for_compatibility__!

__define_wrapper_proc_for_compatibility__!() Class Public methods

remove_references

remove_references(*args) Instance Public methods Removes a reference. Optionally removes a type column. remove_references and remove_belongs_to are acceptable. t.remove_references(:user) t.remove_belongs_to(:supplier, polymorphic: true) remove_belongs_to