5ed6a07083
still #25
15 lines
246 B
Ruby
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
|