rubyx/test/parfait/helper.rb
2019-02-12 22:41:42 +02:00

15 lines
241 B
Ruby

require_relative "../helper"
module Parfait
class ParfaitRewriter < AST::Processor
include AST::Sexp
def rewrite(input)
ast = Parser::Ruby22.parse( input )
new_ast = process(ast)
new_ast.to_s
end
end
end