Class: I18n::AllGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/i18n/all/all_generator.rb

Instance Method Summary collapse

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, *options)
  super
  @_args, @_options = args, options
end

Instance Method Details

#mainObject



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