Class: Yop::TerminalUI

Inherits:
UI
  • Object
show all
Defined in:
lib/yop/ui.rb

Overview

A terminal UI

Instance Method Summary collapse

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