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