Module: UsePackwerk::Private::InteractiveCli::UseCases::Interface

Extended by:
T::Helpers, T::Sig
Included in:
AddDependency, Check, Create, GetInfo, LintPackageYml, MakePublic, Move, Nest, Query, RegenerateRubocopTodo, Rename, UpdateDeprecations, Validate, Visualize
Defined in:
lib/use_packwerk/private/interactive_cli/use_cases/interface.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.allObject



21
22
23
# File 'lib/use_packwerk/private/interactive_cli/use_cases/interface.rb', line 21

def self.all
  T.unsafe(@use_cases).map(&:new)
end

.included(base) ⇒ Object



14
15
16
17
18
# File 'lib/use_packwerk/private/interactive_cli/use_cases/interface.rb', line 14

def self.included(base)
  @use_cases ||= T.let(@use_cases, T.nilable(T::Array[Class]))
  @use_cases ||= []
  @use_cases << base
end

Instance Method Details

#perform!(prompt) ⇒ Object



26
# File 'lib/use_packwerk/private/interactive_cli/use_cases/interface.rb', line 26

def perform!(prompt); end

#user_facing_nameObject



29
# File 'lib/use_packwerk/private/interactive_cli/use_cases/interface.rb', line 29

def user_facing_name; end