Class: RailsTranslationManager::I18nTasksOptionParser
- Inherits:
-
Object
- Object
- RailsTranslationManager::I18nTasksOptionParser
- Defined in:
- lib/rails_translation_manager/i18n_tasks_option_parser.rb
Instance Method Summary collapse
-
#initialize(task_options, locale) ⇒ I18nTasksOptionParser
constructor
A new instance of I18nTasksOptionParser.
- #with_optional_locale ⇒ Object
Constructor Details
#initialize(task_options, locale) ⇒ I18nTasksOptionParser
Returns a new instance of I18nTasksOptionParser.
2 3 4 5 |
# File 'lib/rails_translation_manager/i18n_tasks_option_parser.rb', line 2 def initialize(, locale) @task_options = @locale = locale end |
Instance Method Details
#with_optional_locale ⇒ Object
7 8 9 |
# File 'lib/rails_translation_manager/i18n_tasks_option_parser.rb', line 7 def with_optional_locale @locale ? @task_options << ["-l", @locale] : @task_options end |