Parent

Files

Class Index [+]

Quicksearch

Arel::Sql::Formatter

Attributes

environment[R]
christener[R]
engine[R]

Public Class Methods

new(environment) click to toggle source
    # File lib/arel/engines/sql/formatters.rb, line 6
 6:       def initialize(environment)
 7:         @environment = environment
 8:         @christener  = environment.christener
 9:         @engine      = environment.engine
10:       end

Public Instance Methods

name_for(thing) click to toggle source
    # File lib/arel/engines/sql/formatters.rb, line 12
12:       def name_for thing
13:         @christener.name_for thing
14:       end
quote(value, column = nil) click to toggle source
    # File lib/arel/engines/sql/formatters.rb, line 24
24:       def quote value, column = nil
25:         @engine.connection.quote value, column
26:       end
quote_column_name(name) click to toggle source
    # File lib/arel/engines/sql/formatters.rb, line 16
16:       def quote_column_name name
17:         @engine.connection.quote_column_name name
18:       end
quote_table_name(name) click to toggle source
    # File lib/arel/engines/sql/formatters.rb, line 20
20:       def quote_table_name name
21:         @engine.connection.quote_table_name name
22:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.