Formats snippets of syntax tree back into Ruby source code.
Public Class Methods
format(sexp)click to toggle source
# File lib/reek/source/sexp_formatter.rb, line 10defself.format(sexp)
returnsexp.to_sunlessArray===sexpsexp = YAML::load(YAML::dump(sexp))
Ruby2Ruby.new.process(sexp)
end