Class: I18nChecker::Locale::Collector::Ruby
- Inherits:
-
Object
- Object
- I18nChecker::Locale::Collector::Ruby
- Includes:
- Collectible
- Defined in:
- lib/i18n_checker/locale/collector/ruby.rb
Instance Attribute Summary collapse
-
#file_caches ⇒ Object
readonly
Returns the value of attribute file_caches.
Instance Method Summary collapse
- #collect(source_file) ⇒ Object
-
#initialize(file_caches = I18nChecker::Cache::Files.new) ⇒ Ruby
constructor
A new instance of Ruby.
Methods included from Collectible
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_caches ⇒ Object (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 |