to_s

to_s(format = :default) Instance Public methods Also aliased as: to_default_s

to_sentence

to_sentence(options = {}) Instance Public methods Converts the array to a comma-separated sentence where the last element is joined by the connector word. You can pass the following options to change the default behavior. If you pass an option key that doesn't exist in the list below, it will raise an ArgumentError. Options :words_connector - The sign or word used to join the elements in arrays with two or more elements (default: â, â). :two_words_connector - The sign or word us

to_xml

to_xml(options = {}) Instance Public methods Returns a string that represents the array in XML by invoking to_xml on each element. Active Record collections delegate their representation in XML to this method. All elements are expected to respond to to_xml, if any of them does not then an exception is raised. The root node reflects the class name of the first element in plural if all elements belong to the same type and that's not Hash: customer.projects.to_xml <?xml version="1

ms

ms() Class Public methods Benchmark realtime in milliseconds. Benchmark.realtime { User.all } # => 8.0e-05 Benchmark.ms { User.all } # => 0.074

_original_to_s

_original_to_s(*args) Instance Public methods Alias for: to_s

duplicable?

duplicable?() Instance Public methods

encode_with

encode_with(coder) Instance Public methods

to_formatted_s

to_formatted_s(*args) Instance Public methods Also aliased as: to_s

to_s

to_s(*args) Instance Public methods Also aliased as: _original_to_s

use_relative_model_naming?

use_relative_model_naming?() Class Public methods