lib/parser/tree_rewriter.rb in parser-2.6.0.0 vs lib/parser/tree_rewriter.rb in parser-2.6.2.0
- old
+ new
@@ -25,15 +25,16 @@
# while true do
# puts 'hello'
# end
# EOF
#
+ # ast = Parser::CurrentRuby.parse code
# buffer = Parser::Source::Buffer.new('(example)')
# buffer.source = code
# rewriter = RemoveDo.new
#
# # Rewrite the AST, returns a String with the new form.
- # puts rewriter.rewrite(buffer)
+ # puts rewriter.rewrite(buffer, ast)
#
# This would result in the following Ruby code:
#
# while true
# puts 'hello'