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.



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

def initialize block = nil
  @block = block || Proc.new
  super()
end