Class: LazyRails::PromptGenerators::SelectAppType

Inherits:
Base
  • Object
show all
Defined in:
lib/lazy_rails/prompt_generators.rb

Instance Attribute Summary

Attributes inherited from Base

#prompt

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from LazyRails::PromptGenerators::Base

Instance Method Details

#callObject



12
13
14
15
16
17
18
# File 'lib/lazy_rails/prompt_generators.rb', line 12

def call
  prompt.select(
    "Choose your project type:",
    %w[web api],
    show_help: :always
  )
end