Class: Pwl::Dialog::ConsoleDialog

Inherits:
Base
  • Object
show all
Defined in:
lib/pwl/dialog/console.rb

Direct Known Subclasses

ConsolePasswordDialog, ConsoleTextDialog

Instance Attribute Summary

Attributes inherited from Base

#prompt, #title

Instance Method Summary collapse

Constructor Details

#initialize(prompt) ⇒ ConsoleDialog

Returns a new instance of ConsoleDialog.



6
7
8
9
# File 'lib/pwl/dialog/console.rb', line 6

def initialize(prompt)
  super(nil, prompt)
  @dialog = HighLine.new(STDIN, STDERR)
end