Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
ruby duckify code
SUBMITTED BY:
Guest
DATE:
May 16, 2013, 11:43 p.m.
FORMAT:
Text only
SIZE:
258 Bytes
Raw
Download
Tweet
HITS:
16633
Go to comments
Report
print "Input please: "
user_input = gets.chomp
user_input.downcase!
if user_input.include? "s"
user_input.gsub!(/s/, "th")
else print "There is not an s in the string you provided us... please try again"
puts user_input
end
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus