Class: Yop::TerminalUI
Overview
A terminal UI
Instance Method Summary collapse
-
#get_var(name) ⇒ Object
Get a variable’s value from the terminal.
Instance Method Details
#get_var(name) ⇒ Object
Get a variable’s value from the terminal
20 21 22 23 24 25 |
# File 'lib/yop/ui.rb', line 20 def get_var(name) print "#{name} = " $stdin.readline.chomp rescue EOFError super end |