Class: FactoryGirl::Upgrader::Runner
- Inherits:
-
Thor
- Object
- Thor
- FactoryGirl::Upgrader::Runner
- Defined in:
- lib/factory_girl/upgrader/runner.rb
Instance Method Summary collapse
Instance Method Details
#cat(path) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/factory_girl/upgrader/runner.rb', line 8 def cat(path) sexp = RubyParser.new.parse(File.read(path)) sexp = FactoryGirl::Upgrader::Transformer.new.transform(sexp) RubyScribe::Emitter.new.tap do |emitter| emitter.methods_without_parenthesis += ["factory"] puts emitter.emit(sexp) end end |