Class: Hanami::Minitest::Commands::Generate::Slice Private
- Inherits:
-
CLI::Command
- Object
- CLI::Command
- Hanami::Minitest::Commands::Generate::Slice
- 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.
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.
100 101 102 103 104 105 |
# File 'lib/hanami/minitest/commands.rb', line 100 def call( = nil, name: nil, **) slice = inflector.underscore(Shellwords.shellescape(name)) generator = Generators::Slice.new(fs: fs, inflector: inflector) generator.call(slice) end |