daffy duckifier in ruby 08-26-2014, 07:13 PM
#1
I made this in a lesson on code academy. Personally, I think it's hilarious.
It doesn't do much but it turns any "s" in the initial string to a "th" turning it in to a lisp- er, lithp.
just save as "whatever.rb"
It doesn't do much but it turns any "s" in the initial string to a "th" turning it in to a lisp- er, lithp.
Code:
puts "Daffy Duckifier by RR"
print "feed me strings!"
string = gets.chomp
string.downcase!
if string.include? "s"
string.gsub!(/s/, "th")
else
print "nothing to duckify :("
end
puts "#{string}"It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.
don't have much in the first place, who feel the new currents and ride them the farthest.















![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)

![[Image: obDhRdK.gif]](http://i.imgur.com/obDhRdK.gif)
![[Image: OilyCostlyEwe.gif]](http://fat.gfycat.com/OilyCostlyEwe.gif)