Skip to content

Instantly share code, notes, and snippets.

@fijimunkii
Last active December 24, 2015 00:09
Show Gist options
  • Save fijimunkii/6715190 to your computer and use it in GitHub Desktop.
Save fijimunkii/6715190 to your computer and use it in GitHub Desktop.
ruby: ask question
def ask(question)
puts question
user_input = gets.chomp
end
def ask_num(question)
ask(question).to_f
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment