Parent

Class Index [+]

Quicksearch

Arel::TreeManager

Attributes

ast[R]
engine[R]

Public Class Methods

new(engine) click to toggle source
    # File lib/arel/tree_manager.rb, line 9
 9:     def initialize engine
10:       @engine = engine
11:       @ctx    = nil
12:     end

Public Instance Methods

initialize_copy(other) click to toggle source
    # File lib/arel/tree_manager.rb, line 26
26:     def initialize_copy other
27:       super
28:       @ast = @ast.clone
29:     end
to_dot() click to toggle source
    # File lib/arel/tree_manager.rb, line 14
14:     def to_dot
15:       Visitors::Dot.new.accept @ast
16:     end
to_sql() click to toggle source
    # File lib/arel/tree_manager.rb, line 22
22:     def to_sql
23:       visitor.accept @ast
24:     end
visitor() click to toggle source
    # File lib/arel/tree_manager.rb, line 18
18:     def visitor
19:       engine.connection.visitor
20:     end
where(expr) click to toggle source
    # File lib/arel/tree_manager.rb, line 31
31:     def where expr
32:       if Arel::TreeManager === expr
33:         expr = expr.ast
34:       end
35:       @ctx.wheres << expr
36:       self
37:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.