rubyx/test/parfait/helper.rb

15 lines
241 B
Ruby
Raw Normal View History

2018-04-26 11:31:37 +02:00
require_relative "../helper"
2019-02-12 21:41:42 +01:00
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