Class: ActionDispatch::Journey::Visitors::Each
- Defined in:
- actionpack/lib/action_dispatch/journey/visitors.rb
Overview
Loop through the requirements AST
Constant Summary
Constants inherited from Visitor
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(block) ⇒ Each
constructor
A new instance of Each.
- #visit(node) ⇒ Object
Methods inherited from Visitor
Constructor Details
#initialize(block) ⇒ Each
Returns a new instance of Each.
47 48 49 |
# File 'actionpack/lib/action_dispatch/journey/visitors.rb', line 47 def initialize(block) @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
:nodoc:
45 46 47 |
# File 'actionpack/lib/action_dispatch/journey/visitors.rb', line 45 def block @block end |
Instance Method Details
#visit(node) ⇒ Object
51 52 53 54 |
# File 'actionpack/lib/action_dispatch/journey/visitors.rb', line 51 def visit(node) super block.call(node) end |