Class: CheckboxResponseDefault
- Inherits:
-
Object
- Object
- CheckboxResponseDefault
- Includes:
- CheckboxRenderer
- Defined in:
- lib/inquirer/prompts/checkbox.rb
Overview
Default formatting for response
Constant Summary collapse
- C =
Term::ANSIColor
Instance Method Summary collapse
-
#initialize(style = nil) ⇒ CheckboxResponseDefault
constructor
A new instance of CheckboxResponseDefault.
Methods included from CheckboxRenderer
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 |