Class: Hanami::CLI::Generators::App::Part Private
- Inherits:
-
Object
- Object
- Hanami::CLI::Generators::App::Part
- Defined in:
- lib/hanami/cli/generators/app/part.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(key:, namespace:, base_path:) ⇒ Object private
-
#initialize(fs:, inflector:, out: $stdout) ⇒ Part
constructor
private
A new instance of Part.
Constructor Details
#initialize(fs:, inflector:, out: $stdout) ⇒ Part
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 Part.
15 16 17 18 19 |
# File 'lib/hanami/cli/generators/app/part.rb', line 15 def initialize(fs:, inflector:, out: $stdout) @fs = fs @inflector = inflector @out = out end |
Instance Method Details
#call(key:, namespace:, base_path:) ⇒ 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.
23 24 25 26 27 |
# File 'lib/hanami/cli/generators/app/part.rb', line 23 def call(key:, namespace:, base_path:, **) create_app_base_part_if_missing(key:, namespace:, base_path:) create_slice_part_if_missing(key:, namespace:, base_path:) unless namespace == Hanami.app.namespace create_generated_part(key:, namespace:, base_path:) end |