Class: AmberExtensionGenerator::CLI::GemGenerator
- Inherits:
-
Object
- Object
- AmberExtensionGenerator::CLI::GemGenerator
- Defined in:
- lib/amber_extension_generator/cli/gem_generator.rb
Overview
Generates a new extension gem
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ void
-
#initialize(args) ⇒ GemGenerator
constructor
A new instance of GemGenerator.
Constructor Details
#initialize(args) ⇒ GemGenerator
Returns a new instance of GemGenerator.
25 26 27 |
# File 'lib/amber_extension_generator/cli/gem_generator.rb', line 25 def initialize(args) @args = args end |
Class Method Details
.call(args) ⇒ void
This method returns an undefined value.
19 20 21 |
# File 'lib/amber_extension_generator/cli/gem_generator.rb', line 19 def call(args) new(args).call end |
Instance Method Details
#call ⇒ void
This method returns an undefined value.
30 31 32 33 34 35 |
# File 'lib/amber_extension_generator/cli/gem_generator.rb', line 30 def call ::CLI::UI::StdoutRouter.enable generate_amber_gem puts generate_rails_dummy_app end |