Class: CheckboxResponseDefault

Inherits:
Object
  • Object
show all
Includes:
CheckboxRenderer
Defined in:
lib/inquirer/prompts/checkbox.rb

Overview

Default formatting for response

Constant Summary collapse

C =
Term::ANSIColor

Instance Method Summary collapse

Methods included from CheckboxRenderer

#render, #renderResponse

Constructor Details

#initialize(style = nil) ⇒ CheckboxResponseDefault

Returns a new instance of CheckboxResponseDefault.



54
55
56
57
# File 'lib/inquirer/prompts/checkbox.rb', line 54

def initialize( style = nil )
  @heading = "%s: "
  @response = C.cyan("%s") + "\n"
end