Sha256: d361a666886992fac59ba51e6194ce8e4b00f988df67463b8f4272814550db08
Contents?: true
Size: 288 Bytes
Versions: 2
Compression:
Stored size: 288 Bytes
Contents
require 'ruby2ruby' module Reek module Source # # Formats snippets of syntax tree back into Ruby source code. # class SexpFormatter def self.format(sexp) sexp = YAML::load(YAML::dump(sexp)) Ruby2Ruby.new.process(sexp) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-1.2.7.1 | lib/reek/source/sexp_formatter.rb |
reek-1.2.7 | lib/reek/source/sexp_formatter.rb |