Module: I18nChecker::Collectible

Included in:
Locale::Collector::Haml, Locale::Collector::Ruby
Defined in:
lib/i18n_checker/collectible.rb

Instance Method Summary collapse

Instance Method Details

#collect(file) ⇒ Object



3
4
# File 'lib/i18n_checker/collectible.rb', line 3

def collect(file)
end

#collect_all(files) ⇒ Object



6
7
8
9
# File 'lib/i18n_checker/collectible.rb', line 6

def collect_all(files)
  texts = files.map { |file| collect(file) }
  texts.reduce { |merged_texts, n| merged_texts.concat(n) }
end