rubyx/test/parfait/helper.rb
Torsten Ruger 5ed6a07083 better test for attr
still #25
2019-03-07 10:47:48 +02:00

15 lines
246 B
Ruby

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