Class: ToolsPrompt
Class Method Summary collapse
- .ask(*args) ⇒ Object
- .enum_select(*args) ⇒ Object
- .expand(*args) ⇒ Object
- .mask(*args) ⇒ Object
- .multi_select(*args) ⇒ Object
- .no?(*args) ⇒ Boolean
- .select(*args) ⇒ Object
- .yes?(*args) ⇒ Boolean
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ToolsPrompt
constructor
A new instance of ToolsPrompt.
Constructor Details
#initialize(options = {}) ⇒ ToolsPrompt
Returns a new instance of ToolsPrompt.
5 6 |
# File 'lib/lib/prompt.rb', line 5 def initialize( = {}) end |
Class Method Details
.ask(*args) ⇒ Object
18 19 20 21 22 |
# File 'lib/lib/prompt.rb', line 18 def self.ask *args prompt = TTY::Prompt.new result = prompt.ask *args return result end |
.enum_select(*args) ⇒ Object
42 43 44 45 46 |
# File 'lib/lib/prompt.rb', line 42 def self.enum_select *args prompt = TTY::Prompt.new result = prompt.multi_select *args return result end |
.expand(*args) ⇒ Object
48 49 50 51 52 |
# File 'lib/lib/prompt.rb', line 48 def self. *args prompt = TTY::Prompt.new result = prompt. *args return result end |
.mask(*args) ⇒ Object
24 25 26 27 28 |
# File 'lib/lib/prompt.rb', line 24 def self.mask *args prompt = TTY::Prompt.new result = prompt.mask *args return result end |
.multi_select(*args) ⇒ Object
36 37 38 39 40 |
# File 'lib/lib/prompt.rb', line 36 def self.multi_select *args prompt = TTY::Prompt.new result = prompt.multi_select *args return result end |
.no?(*args) ⇒ Boolean
13 14 15 16 |
# File 'lib/lib/prompt.rb', line 13 def self.no? *args prompt = TTY::Prompt.new prompt.no? *args end |
.select(*args) ⇒ Object
30 31 32 33 34 |
# File 'lib/lib/prompt.rb', line 30 def self.select *args prompt = TTY::Prompt.new result = prompt.select *args return result end |
.yes?(*args) ⇒ Boolean
8 9 10 11 |
# File 'lib/lib/prompt.rb', line 8 def self.yes? *args prompt = TTY::Prompt.new prompt.yes? *args end |