Class: LazyRails::PromptGenerators::SelectJs

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



33
34
35
36
37
38
39
# File 'lib/lazy_rails/prompt_generators.rb', line 33

def call
  prompt.select(
    "Choose your JavaScript approach:",
    %w[importmap esbuild bun rollup webpack],
    show_help: :always
  )
end