Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Porky
- def user_input
- print "Please enter a sentence..."
- pig = gets.chomp()
- pig.downcase!
- if pig.include? "s"
- pig.gsub!(/s/, "th")
- else
- print "you thuck again"
- end
- puts "Porky pig says, #{user_input}!"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement