Class: MutatorRails::Cleanup
- Inherits:
-
Object
- Object
- MutatorRails::Cleanup
- Includes:
- Adamantium::Flat
- Defined in:
- lib/mutator_rails/cleanup.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ Cleanup
constructor
A new instance of Cleanup.
Constructor Details
Instance Method Details
#call ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/mutator_rails/cleanup.rb', line 16 def call Dir .glob(APP_BASE + '**/*.rb') .each do |file| next if exclude?(file) check(file) end guide_keys.each do |file| File.delete(file) if File.exist?(file) puts "removing #{file}" guide.remove(file) end end |