Class: Hello::LocalesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Hello::LocalesGenerator
- Defined in:
- lib/generators/hello/locales/locales_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_locales ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/generators/hello/locales/locales_generator.rb', line 8 def copy_locales case when selected_locales == [] puts_usage puts when selected_locales == ['all'] copy_them(available_locales) when missing_locales.any? puts_usage puts_matching puts_missing puts else copy_them(matching_locales) end end |