Class: ConfirmResponseDefault

Inherits:
Object
  • Object
show all
Includes:
ConfirmRenderer
Defined in:
lib/inquirer/prompts/confirm.rb

Overview

Default formatting for response

Constant Summary collapse

C =
Term::ANSIColor

Instance Method Summary collapse

Methods included from ConfirmRenderer

#render, #renderResponse

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