find_by_sql

find_by_sql(sql, binds = []) Instance Public methods Executes a custom SQL query against your database and returns all the results. The results will be returned as an array with columns requested encapsulated as attributes of the model you call this method from. If you call Product.find_by_sql then the results will be returned in a Product object with the attributes you specified in the SQL query. If you call a complicated SQL query which spans multiple tables the columns specified

pp

pp(*objs) Instance Public methods Prints the given objs calling Object#inspect on each. See puts for more detail.

[]=

[]=(k, v) Instance Public methods

define

define(info={}, &block) Class Public methods Eval the given block. All methods available to the current connection adapter are available within the block, so you can easily use the database definition DSL to build up your schema (create_table, add_index, etc.). The info hash is optional, and if given is used to define metadata about the current schema (currently, only the schema's version): ActiveRecord::Schema.define(version: 20380119000001) do ... end

configinfo

configinfo(slot = nil) Instance Public methods

lineno

lineno() Instance Public methods The line number of the current token. This value starts from 1. This method is valid only in event handlers.

cget_tkstring

cget_tkstring(option) Instance Public methods

hidden_actions

hidden_actions() Class Public methods The list of hidden actions. Defaults to an empty array. This can be modified by other modules or subclasses to specify particular actions as hidden. Returns Array - An array of method names that should not be considered actions.

rake_merge_option

rake_merge_option(args, defaults) Instance Public methods Merge the given options with the default values.

new

new(source) Class Public methods Create an AttlistDecl, pulling the information from a Source. Notice that this isn't very convenient; to create an AttlistDecl, you basically have to format it yourself, and then have the initializer parse it. Sorry, but for the forseeable future, DTD support in REXML is pretty weak on convenience. Have I mentioned how much I hate DTDs?