Class: Uffizzi::UI::Prompt
- Inherits:
-
Object
- Object
- Uffizzi::UI::Prompt
- Defined in:
- lib/uffizzi/promt.rb
Instance Method Summary collapse
- #ask(message, **args) ⇒ Object
-
#initialize ⇒ Prompt
constructor
A new instance of Prompt.
- #select(question, choices) ⇒ Object
- #yes?(message) ⇒ Boolean
Constructor Details
#initialize ⇒ Prompt
Returns a new instance of Prompt.
8 9 10 |
# File 'lib/uffizzi/promt.rb', line 8 def initialize @prompt = TTY::Prompt.new end |
Instance Method Details
#ask(message, **args) ⇒ Object
16 17 18 |
# File 'lib/uffizzi/promt.rb', line 16 def ask(, **args) @prompt.ask(, **args) end |
#select(question, choices) ⇒ Object
12 13 14 |
# File 'lib/uffizzi/promt.rb', line 12 def select(question, choices) @prompt.select(question, choices) end |
#yes?(message) ⇒ Boolean
20 21 22 |
# File 'lib/uffizzi/promt.rb', line 20 def yes?() @prompt.yes?() end |