Method: Parser::Source::TreeRewriter#remove
- Defined in:
- lib/parser/source/tree_rewriter.rb
#remove(range) ⇒ Rewriter
Shortcut for ‘replace(range, ”)`
217 218 219 |
# File 'lib/parser/source/tree_rewriter.rb', line 217 def remove(range) replace(range, ''.freeze) end |