Class: Hanami::CLI::Generators::Gem::App Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 2.0.0

Instance Method Summary collapse

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.

Since:

  • 2.0.0



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.

Since:

  • 2.0.0



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