Class: Hanami::Minitest::Commands::Generate::Slice Private

Inherits:
CLI::Command
  • Object
show all
Defined in:
lib/hanami/minitest/commands.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

Instance Method Details

#call(options = nil, name: nil) ⇒ 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



100
101
102
103
104
105
# File 'lib/hanami/minitest/commands.rb', line 100

def call(options = nil, name: nil, **)
  slice = inflector.underscore(Shellwords.shellescape(name))

  generator = Generators::Slice.new(fs: fs, inflector: inflector)
  generator.call(slice)
end