Class: BaseChecker
- Inherits:
-
Object
- Object
- BaseChecker
- Defined in:
- lib/rails_translation_manager/locale_checker/base_checker.rb
Direct Known Subclasses
IncompatiblePlurals, MissingDeclaredLocales, MissingEnglishLocales, MissingForeignLocales, UndeclaredLocaleFiles
Instance Attribute Summary collapse
-
#all_locales ⇒ Object
readonly
Returns the value of attribute all_locales.
Instance Method Summary collapse
-
#initialize(all_locales) ⇒ BaseChecker
constructor
A new instance of BaseChecker.
- #report ⇒ Object
Constructor Details
#initialize(all_locales) ⇒ BaseChecker
Returns a new instance of BaseChecker.
6 7 8 |
# File 'lib/rails_translation_manager/locale_checker/base_checker.rb', line 6 def initialize(all_locales) @all_locales = all_locales end |
Instance Attribute Details
#all_locales ⇒ Object (readonly)
Returns the value of attribute all_locales.
4 5 6 |
# File 'lib/rails_translation_manager/locale_checker/base_checker.rb', line 4 def all_locales @all_locales end |
Instance Method Details
#report ⇒ Object
10 11 12 |
# File 'lib/rails_translation_manager/locale_checker/base_checker.rb', line 10 def report raise "You must define a `report` method in the child class!" end |