Method: Synvert::Core::Rewriter::Instance#replace
- Defined in:
- lib/synvert/core/rewriter/instance.rb
#replace(*selectors, with:) ⇒ Object
It replaces the code of specified child nodes.
356 357 358 |
# File 'lib/synvert/core/rewriter/instance.rb', line 356 def replace(*selectors, with:) @current_mutation.replace(@current_node, *selectors, with: with) end |