Class: I18n::AllGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- I18n::AllGenerator
- Defined in:
- lib/generators/i18n/all/all_generator.rb
Instance Method Summary collapse
-
#initialize(args, *options) ⇒ AllGenerator
constructor
A new instance of AllGenerator.
- #main ⇒ Object
Constructor Details
#initialize(args, *options) ⇒ AllGenerator
Returns a new instance of AllGenerator.
6 7 8 9 |
# File 'lib/generators/i18n/all/all_generator.rb', line 6 def initialize(args, *) super @_args, @_options = args, end |
Instance Method Details
#main ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/generators/i18n/all/all_generator.rb', line 11 def main locale_gen = I18nLocaleGenerator.new(@_args, @_options) locale_gen.main translation_gen = I18nTranslationGenerator.new(@_args, @_options) translation_gen.main end |