Class: Hanami::CLI::Generators::Gem::App Private
- Inherits:
-
Object
- Object
- Hanami::CLI::Generators::Gem::App
- Defined in:
- lib/hanami/cli/generators/gem/app.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #call(app, context: Context.new(inflector, app), &blk) ⇒ Object private
-
#initialize(fs:, inflector:) ⇒ App
constructor
private
A new instance of App.
Constructor Details
#initialize(fs:, inflector:) ⇒ App
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of App.
17 18 19 20 21 |
# File 'lib/hanami/cli/generators/gem/app.rb', line 17 def initialize(fs:, inflector:) super() @fs = fs @inflector = inflector end |
Instance Method Details
#call(app, context: Context.new(inflector, app), &blk) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 28 |
# File 'lib/hanami/cli/generators/gem/app.rb', line 25 def call(app, context: Context.new(inflector, app), &blk) generate_app(app, context) blk.call end |