Class: Arel::Visitors::DepthFirst

Inherits:
Visitor
  • Object
show all
Defined in:
lib/arel/visitors/depth_first.rb

Instance Method Summary collapse

Methods inherited from Visitor

#accept

Constructor Details

#initialize(block = nil) ⇒ DepthFirst

Returns a new instance of DepthFirst.



4
5
6
# File 'lib/arel/visitors/depth_first.rb', line 4

def initialize block = nil
  @block = block || Proc.new
end