rubyx/test/parfait/helper.rb

15 lines
246 B
Ruby
Raw Normal View History

2018-04-26 12:31:37 +03:00
require_relative "../helper"
2019-02-12 22:41:42 +02:00
module Parfait
class ParfaitRewriter < AST::Processor
include AST::Sexp
def rewrite(input)
2019-03-07 10:47:48 +02:00
ast = Parser::CurrentRuby.parse( input )
2019-02-12 22:41:42 +02:00
new_ast = process(ast)
new_ast.to_s
end
end
end