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