Class: I18nChecker::Locale::Collector::Ruby

Inherits:
Object
  • Object
show all
Includes:
Collectible
Defined in:
lib/i18n_checker/locale/collector/ruby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Collectible

#collect_all

Constructor Details

#initialize(file_caches = I18nChecker::Cache::Files.new) ⇒ Ruby

Returns a new instance of Ruby.



15
16
17
# File 'lib/i18n_checker/locale/collector/ruby.rb', line 15

def initialize(file_caches = I18nChecker::Cache::Files.new)
  @file_caches = file_caches
end

Instance Attribute Details

#file_cachesObject (readonly)

Returns the value of attribute file_caches.



13
14
15
# File 'lib/i18n_checker/locale/collector/ruby.rb', line 13

def file_caches
  @file_caches
end

Instance Method Details

#collect(source_file) ⇒ Object



19
20
21
# File 'lib/i18n_checker/locale/collector/ruby.rb', line 19

def collect(source_file)
  I18nChecker::Locale::Texts.new(process(source_file))
end