Top Level Namespace
Defined Under Namespace
Modules: Interactive, RailsInteractiveGenerators
Instance Method Summary collapse
Instance Method Details
#boolean_choices ⇒ Object
7 8 9 |
# File 'lib/rails_interactive_generators/interactive_generator_helper.rb', line 7 def boolean_choices [{name: "yes", value: true}, {name: "no", value: false}] end |
#prompt ⇒ Object
3 4 5 |
# File 'lib/rails_interactive_generators/interactive_generator_helper.rb', line 3 def prompt TTY::Prompt.new end |