Method: Parser::Source::TreeRewriter#insert_after

Defined in:
lib/parser/source/tree_rewriter.rb

#insert_after(range, content) ⇒ Rewriter

Shortcut for ‘wrap(range, nil, content)`

Parameters:

  • range (Range)
  • content (String)

Returns:

Raises:



242
243
244
# File 'lib/parser/source/tree_rewriter.rb', line 242

def insert_after(range, content)
  wrap(range, nil, content)
end