News for hackers. Stuff that matters.
Re:New Ruby 1.9 Features, Tips & Tricks by rue on Monday February 21, 2011 @05:00PM (#2247415)
Or, more simply:

    case $stdin.gets.chomp
    when lambda {|matchobj| matchobj.count("!") > 1 }
      puts "Quitcher yelling!"
    when "hi"
      puts "Hi yourself"
    end

There are no comments on this comment yet.