Skip to content

Ruby2Go 1.0.2

Latest
Compare
Choose a tag to compare
@bryanjhv bryanjhv released this 26 Dec 00:21
· 9 commits to master since this release

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}?"