Methods

Class Index [+]

Quicksearch

Arel::Visitors

Constants

VISITORS
ENGINE_VISITORS

Public Instance Methods

dispatch() click to toggle source
    # File lib/arel/visitors/visitor.rb, line 14
14:       def dispatch
15:         DISPATCH
16:       end
visit(object) click to toggle source
    # File lib/arel/visitors/visitor.rb, line 18
18:       def visit object
19:         send dispatch[object.class], object
20:       rescue NoMethodError => e
21:         raise e if respond_to?(dispatch[object.class], true)
22:         superklass = object.class.ancestors.find { |klass|
23:           respond_to?(dispatch[klass], true)
24:         }
25:         raise(TypeError, "Cannot visit #{object.class}") unless superklass
26:         dispatch[object.class] = dispatch[superklass]
27:         retry
28:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.