Class: PutText::Rails::Extractor
- Inherits:
-
Object
- Object
- PutText::Rails::Extractor
- Defined in:
- lib/puttext-rails/extractor.rb
Instance Method Summary collapse
-
#extract ⇒ POFile
Extract string from the Rails project this gem is included in.
Instance Method Details
#extract ⇒ POFile
Extract string from the Rails project this gem is included in.
11 12 13 14 15 16 17 18 19 |
# File 'lib/puttext-rails/extractor.rb', line 11 def extract puttext_extractor = PutText::Extractor.new po_file = puttext_extractor.extract(root_path) errors_file = extract_errors po_file.merge(errors_file) po_file end |