Sha256: b41f19542bca20d54c391cf147996ca5560bf92c3d883c3543bfddb9d87f3ae5

Contents?: true

Size: 216 Bytes

Versions: 11

Compression:

Stored size: 216 Bytes

Contents

require 'rubygems'
require 'ruby_parser'
require 'ruby2ruby'

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

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
kevinrutherford-reek-1.1.3.10 lib/reek/sexp_formatter.rb
kevinrutherford-reek-1.1.3.11 lib/reek/sexp_formatter.rb
kevinrutherford-reek-1.1.3.12 lib/reek/sexp_formatter.rb
kevinrutherford-reek-1.1.3.13 lib/reek/sexp_formatter.rb
kevinrutherford-reek-1.1.3.14 lib/reek/sexp_formatter.rb
kevinrutherford-reek-1.1.3.15 lib/reek/sexp_formatter.rb
kevinrutherford-reek-1.1.3.16 lib/reek/sexp_formatter.rb
kevinrutherford-reek-1.2.0 lib/reek/sexp_formatter.rb
reek-1.2.2 lib/reek/sexp_formatter.rb
reek-1.2.1 lib/reek/sexp_formatter.rb
reek-1.2.0 lib/reek/sexp_formatter.rb