This release adds support for custom input, by using a helper (with_input
). Then you just read it with gets
method like you'd do in a computer.
Use it like so:
with_input('Bryan', 2016-1996)
name = gets.chomp
age = gets.to_i
puts "Hi #{name}, are you really #{age}?"