Class: Pragmater::Processors::Handler
- Inherits:
-
Object
- Object
- Pragmater::Processors::Handler
- Defined in:
- lib/pragmater/processors/handler.rb
Overview
Handles the insertion or removal of pragma comments.
Constant Summary collapse
Instance Method Summary collapse
- #call(action, comments, body) ⇒ Object
-
#initialize(processors: DEFAULTS) ⇒ Handler
constructor
A new instance of Handler.
Constructor Details
Instance Method Details
#call(action, comments, body) ⇒ Object
13 |
# File 'lib/pragmater/processors/handler.rb', line 13 def call(action, comments, body) = processors.fetch(action).new(comments, body).call |