Class: CheckboxDefault

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

Overview

Formatting for rendering

Constant Summary collapse

C =
Term::ANSIColor

Instance Method Summary collapse

Methods included from CheckboxRenderer

#render

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