scan_mark

scan_mark(x, y) Instance Public methods

expand_hash_conditions_for_aggregates

expand_hash_conditions_for_aggregates(attrs) Instance Protected methods Accepts a hash of SQL conditions and replaces those attributes that correspond to a composed_of relationship with their expanded aggregate attribute values. Given: class Person < ActiveRecord::Base composed_of :address, class_name: "Address", mapping: [%w(address_street street), %w(address_city city)] end Then: { address: Address.new("813 abc st.", "chicago") } # => { address_street: "813 abc st.

reference

reference(label, link) Instance Public methods Stores label as a reference to link and fills in previously unknown link references.

out

cgi.out(content_type_string='text/html')cgi.out(headers_hash) Instance Public methods Print an HTTP header and body to $DEFAULT_OUTPUT ($>) content_type_string If a string is passed, it is assumed to be the content type. headers_hash This is a Hash of headers, similar to that used by http_header. block A block is required and should evaluate to the body of the response. Content-Length is automatically calculated from the size of the String returned by the content b

inspect

ary.inspect â stringary.to_s â string Instance Public methods Creates a string representation of self. [ "a", "b", "c" ].to_s #=> "[\"a\", \"b\", \"c\"]" to_s

to_csv

to_csv(options = Hash.new) Instance Public methods Returns the table as a complete CSV String. Headers will be listed first, then all of the field rows. This method assumes you want the #headers, unless you explicitly pass :write_headers => false. to_s

converted_arrays

converted_arrays() Instance Public methods Attribute that keeps track of converted arrays, if any, to avoid double looping in the common use case permit + mass-assignment. Defined in a method to instantiate it only if needed.

rails_root

rails_root() Instance Protected methods

safe_base?

safe_base?() Class Public methods

xview_moveto

xview_moveto(*index) Instance Public methods