Class: InputDefault

Inherits:
Object
  • Object
show all
Includes:
InputRenderer
Defined in:
lib/inquirer/prompts/input.rb

Overview

Default formatting for list rendering

Constant Summary collapse

C =
Term::ANSIColor

Instance Method Summary collapse

Methods included from InputRenderer

#render, #renderResponse

Constructor Details

#initialize(style) ⇒ InputDefault

Returns a new instance of InputDefault.



28
29
30
31
32
33
# File 'lib/inquirer/prompts/input.rb', line 28

def initialize( style )
  @heading = "%s: "
  @default = "(%s) "
  @value = "%s"
  @footer = "%s"
end