class Pwl::Dialog::ConsoleTextDialog
Public Instance Methods
get_input()
click to toggle source
# File lib/pwl/dialog/console.rb, line 30 def get_input begin STDIN.tty? ? @dialog.ask(prompt) : STDIN.read.chomp rescue Interrupt raise Cancelled.new(1) end end