Class: ConfirmDefault

Inherits:
Object
  • Object
show all
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

Methods included from ConfirmRenderer

#render, #renderResponse

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