Class: ConfirmResponseDefault
- Inherits:
-
Object
- Object
- ConfirmResponseDefault
- Includes:
- ConfirmRenderer
- Defined in:
- lib/inquirer/prompts/confirm.rb
Overview
Default formatting for response
Constant Summary collapse
- C =
Term::ANSIColor
Instance Method Summary collapse
-
#initialize(style = nil) ⇒ ConfirmResponseDefault
constructor
A new instance of ConfirmResponseDefault.
Methods included from ConfirmRenderer
Constructor Details
#initialize(style = nil) ⇒ ConfirmResponseDefault
Returns a new instance of ConfirmResponseDefault.
41 42 43 44 |
# File 'lib/inquirer/prompts/confirm.rb', line 41 def initialize( style = nil ) @heading = "%s: " @response = C.cyan("%s") + "\n" end |