Class: RailsTranslationManager::Cleaner
- Inherits:
-
Object
- Object
- RailsTranslationManager::Cleaner
- Defined in:
- lib/rails_translation_manager/cleaner.rb
Instance Method Summary collapse
- #clean ⇒ Object
-
#initialize(path) ⇒ Cleaner
constructor
A new instance of Cleaner.
Constructor Details
#initialize(path) ⇒ Cleaner
Returns a new instance of Cleaner.
6 7 8 |
# File 'lib/rails_translation_manager/cleaner.rb', line 6 def initialize(path) @path = path end |
Instance Method Details
#clean ⇒ Object
10 11 12 |
# File 'lib/rails_translation_manager/cleaner.rb', line 10 def clean `find #{@path} -type f -exec perl -p -i -e \"s/[ \t]$//g\" {} \\;` end |