Class: Soapstone::UI::Components::Prompt
- Inherits:
-
Object
- Object
- Soapstone::UI::Components::Prompt
- Defined in:
- lib/soapstone/ui/components/prompt.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options: {}) ⇒ Prompt
constructor
A new instance of Prompt.
Constructor Details
#initialize(options: {}) ⇒ Prompt
Returns a new instance of Prompt.
6 7 8 |
# File 'lib/soapstone/ui/components/prompt.rb', line 6 def initialize(options: {}) @options = end |
Class Method Details
.call(options: {}) ⇒ Object
2 3 4 |
# File 'lib/soapstone/ui/components/prompt.rb', line 2 def self.call(options: {}) new(options: ).call end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'lib/soapstone/ui/components/prompt.rb', line 10 def call TTY::Prompt.new(help_color: :dim, enable_color: true, interrupt: :exit, **) end |