Sha256: 2ac74b734c48530cd414482f7b61945dc25df3ddf46ff6e3dd907f8e254f0e67
Contents?: true
Size: 315 Bytes
Versions: 1
Compression:
Stored size: 315 Bytes
Contents
module Mathy class Verification def check_answer(question, correct_answer) puts "" print question answer = gets if answer.to_i == correct_answer print "Correct!" return true end print "The correct answer is #{correct_answer}." false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mathy-0.0.1 | lib/mathy/verification.rb |