Class: CheckboxDefault
- Inherits:
-
Object
- Object
- CheckboxDefault
- Includes:
- CheckboxRenderer
- Defined in:
- lib/inquirer/prompts/checkbox.rb
Overview
Formatting for rendering
Constant Summary collapse
- C =
Term::ANSIColor
Instance Method Summary collapse
-
#initialize(style) ⇒ CheckboxDefault
constructor
A new instance of CheckboxDefault.
Methods included from CheckboxRenderer
Constructor Details
#initialize(style) ⇒ CheckboxDefault
Returns a new instance of CheckboxDefault.
32 33 34 35 36 37 38 39 40 |
# File 'lib/inquirer/prompts/checkbox.rb', line 32 def initialize( style ) @heading = "%s:\n" @footer = "%s\n" @item = "%s\n" @active_item = "%s" + "\n" @selector = C.cyan style.selector @checkbox_on = C.cyan style.checkbox_on @checkbox_off = style.checkbox_off end |