Class: Reek::SexpFormatter

Inherits:
Object show all
Defined in:
lib/reek/sexp_formatter.rb

Class Method Summary collapse

Class Method Details

.format(sexp) ⇒ Object



5
6
7
8
# File 'lib/reek/sexp_formatter.rb', line 5

def self.format(sexp)
  sexp = YAML::load(YAML::dump(sexp))
  Ruby2Ruby.new.process(sexp)
end