4 5 6 7 8 9
# File 'lib/april/parser.rb', line 4 def handle(s) match = s.match(/PING\s+(.*)$/) if match write "PONG #{match[1]}" end end