Module: Umu
- Extended by:
- Color
- Includes:
- Generators
- Defined in:
- lib/umu.rb,
lib/umu/version.rb,
lib/umu/generators.rb,
lib/umu/core/inputter.rb,
lib/umu/core/selector.rb,
lib/umu/core/validation.rb,
lib/umu/core/language_setting.rb
Overview
UmuはRailsのコードを自動生成するためのツールです。
Defined Under Namespace
Modules: Generators Classes: Error, Inputter, LanguageSetting, Selector, Validation
Constant Summary collapse
- VERSION =
"0.1.6"
Constants included from Color
Constants included from Generators
Class Method Summary collapse
Methods included from Generators
Class Method Details
.generator ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/umu.rb', line 17 def self.generator Umu::LanguageSetting.setup_language items = %w[model controller migration application_record helper channel job task mailer mailbox benchmark resource].freeze content = "#{green('?')} #{I18n.t(:umu)}" target = Umu::Selector.radio(items, content) puts "\e[2A" puts "#{content} #{green(target)}" Umu::Generators.run(target) end |