Class: Mudguard::Domain::SourceProcessor
- Inherits:
-
Object
- Object
- Mudguard::Domain::SourceProcessor
- Defined in:
- lib/mudguard/domain/source_processor.rb
Overview
Processes the interesting parts of the Ast and forwards selected nodes to the visitors
Instance Method Summary collapse
-
#initialize(location:) ⇒ SourceProcessor
constructor
A new instance of SourceProcessor.
- #process(node, visitor) ⇒ Object
Constructor Details
#initialize(location:) ⇒ SourceProcessor
Returns a new instance of SourceProcessor.
7 8 9 |
# File 'lib/mudguard/domain/source_processor.rb', line 7 def initialize(location:) @location = location end |
Instance Method Details
#process(node, visitor) ⇒ Object
11 12 13 |
# File 'lib/mudguard/domain/source_processor.rb', line 11 def process(node, visitor) process_node(node, visitor, "") end |