Module: UserInput
- Defined in:
- lib/util/user_input.rb
Class Method Summary collapse
-
.get(msg) ⇒ Object
Prints ‘msg` and reads user input.
Class Method Details
.get(msg) ⇒ Object
Prints ‘msg` and reads user input
5 6 7 8 9 |
# File 'lib/util/user_input.rb', line 5 def self.get msg STDOUT.print("#{msg} ") STDOUT.flush STDIN.gets.chomp end |