Revisions

gist: 37631 Download_button fork
public
Public Clone URL: git://gist.github.com/37631.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#IRC Response
=begin
Needs some work, but I could definitely see this helping those people who like to sit in IRC and be jerks when people ask questions.
You could leave your computer and continue be just as unhelpful as you could if you were still there.
=end
 
def irc_person_response(question)
  answer = question.gsub(/How do I/, "Why would you want to")
  if answer == question
    answer = "Why?"
  end
end
 
puts irc_person_response("How do I make passenger run for longer than 5 minutes?")