lib/vernacular/ast/modifier.rb in vernacular-ast-0.0.1 vs lib/vernacular/ast/modifier.rb in vernacular-ast-0.1.0

- old
+ new

@@ -43,10 +43,10 @@ end def modify(source) raise 'You must first configure a rewriter!' unless rewriter_block - rewriter = Class.new(Parser::Rewriter, &rewriter_block).new + rewriter = Class.new(Parser::TreeRewriter, &rewriter_block).new rewriter.instance_variable_set(:@parser, ASTParser.parser) buffer = Parser::Source::Buffer.new('<dynamic>') buffer.source = source