select

select(root) => array Instance Public methods Selects and returns an array with all matching elements, beginning with one node and traversing through all children depth-first. Returns an empty array if no match is found. The root node may be any element in the document, or the document itself. For example: selector = HTML::Selector.new "input[type=text]" matches = selector.select(element) matches.each do |match| puts "Found text field with name #{match.attributes['name']}" en

new

new() Class Public methods

new

new(connection, logger, connection_parameters, config) Class Public methods Initializes and connects a PostgreSQL adapter.

before_configuration

before_configuration(&block) Instance Public methods First configurable block to run. Called before any initializers are run.

partial_collection_shorthand_with_different_types_of_records_with_counter

partial_collection_shorthand_with_different_types_of_records_with_counter() Instance Public methods

action

action(name, klass = ActionDispatch::Request) Class Public methods Returns a Rack endpoint for the given action name.

forty_two

forty_two() Instance Public methods Find the forty-second record. Also known as accessing âthe redditâ. If no order is defined it will order by primary key. Person.forty_two # returns the forty-second object fetched by SELECT * FROM people Person.offset(3).forty_two # returns the forty-second object from OFFSET 3 (which is OFFSET 44) Person.where(["user_name = :u", { u: user_name }]).forty_two

mailer_class

mailer_class() Instance Public methods

on_end_element

on_end_element(name) Instance Public methods

rake

rake(*tasks) Instance Public methods