Parent

Methods

Class/Module Index [+]

Quicksearch

Reek::Source::SexpFormatter

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 10
def self.format(sexp)
  return sexp.to_s unless Array === sexp
  sexp = YAML::load(YAML::dump(sexp))
  Ruby2Ruby.new.process(sexp)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.