From: nobu.nokada@... Date: 2004-07-07T18:50:11+09:00 Subject: Re: Class#=== has interesting results Hi, At Wed, 7 Jul 2004 17:17:36 +0900, Charles Comstock wrote in [ruby-talk:105460]: > Ie: > def parse(str) > input = str.chomp.split > comm = CommandFactory[input[0]] > case when comm == StartCommand > comm.new(input[1],input[2..-1]) > @mobile = input[1] when comm == HelpCommand > else > comm.new(@mobile,input[1..-1]) > end > end You just stand on a wrong assumption, case/when/=== don't work as you imagine. -- Nobu Nakada