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.
39 40 41 42 43 44 45 46 47 |
# File 'lib/inquirer/prompts/checkbox.rb', line 39 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 |