Sha256: 53c9a6fffe22cbbe1f9d183820b8071deeb85078a42199175b4cc13f53bcadb8

Contents?: true

Size: 202 Bytes

Versions: 5

Compression:

Stored size: 202 Bytes

Contents

#!/usr/local/bin/ruby

require 'rio/prompt'

case answer = RIO.prompt("What is the crux of the biscuit: ")
when /the apostrophe/i 
  puts 'Billy was a Mountain'
else 
  puts "You typed '#{answer}'"
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
wishdev-rio-0.4.3.1 ex/rioprompt.rb
rio-0.3.9 ex/rioprompt.rb
rio-0.4.2 ex/rioprompt.rb
rio-0.4.0 ex/rioprompt.rb
rio-0.4.1 ex/rioprompt.rb