Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 282 Bytes
require './lib/cockney'
puts "Cockney Rhyme Slang!"
puts "===================="
puts
loop do
begin
print "> "
word = gets.strip.upcase
puts (Cockney::rhyme(word) + [word]).join(" ") rescue nil
puts
rescue Exception => e
puts e.inspect
exit
end
end