Class: NodeMutation::NoopAction
- Defined in:
- lib/node_mutation/action/noop_action.rb
Overview
NoopAction to do no operation.
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
-
#initialize(node, adapter:) ⇒ NoopAction
constructor
Initialize a NoopAction.
-
#new_code ⇒ String
The rewritten source code with proper indent.
Methods inherited from Action
Constructor Details
#initialize(node, adapter:) ⇒ NoopAction
Initialize a NoopAction.
9 10 11 |
# File 'lib/node_mutation/action/noop_action.rb', line 9 def initialize(node, adapter:) super(node, nil, adapter: adapter) end |
Instance Method Details
#new_code ⇒ String
The rewritten source code with proper indent.
16 17 18 |
# File 'lib/node_mutation/action/noop_action.rb', line 16 def new_code return nil end |