Class: Hanami::CLI::Commands::App::Generate::View Private

Inherits:
Command show all
Defined in:
lib/hanami/cli/commands/app/generate/view.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

Methods inherited from Command

#app, #inflector, inherited, #measure, #run_command

Methods inherited from Hanami::CLI::Command

#inflector, #initialize, new

Constructor Details

This class inherits a constructor from Hanami::CLI::Command

Instance Method Details

#call(name:, slice: nil, template_engine: nil, force: false, **opts) ⇒ 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



42
43
44
# File 'lib/hanami/cli/commands/app/generate/view.rb', line 42

def call(name:, slice: nil, template_engine: nil, force: false, **opts)
  super(name:, slice:, template_engine: template_engine || default_template_engine, force: force)
end

#generator_classObject

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.2.0



36
37
38
# File 'lib/hanami/cli/commands/app/generate/view.rb', line 36

def generator_class
  Generators::App::View
end