Class: ConfirmDefault
- Inherits:
-
Object
- Object
- ConfirmDefault
- Includes:
- ConfirmRenderer
- Defined in:
- lib/inquirer/prompts/confirm.rb
Overview
Default formatting for confirm rendering
Constant Summary collapse
- C =
Term::ANSIColor
Instance Method Summary collapse
-
#initialize(style) ⇒ ConfirmDefault
constructor
A new instance of ConfirmDefault.
Methods included from ConfirmRenderer
Constructor Details
#initialize(style) ⇒ ConfirmDefault
Returns a new instance of ConfirmDefault.
30 31 32 33 34 |
# File 'lib/inquirer/prompts/confirm.rb', line 30 def initialize( style ) @heading = "%s: " @default = "(%s/%s)" @footer = "%s" end |