From: Zikiss Chan Date: 2006-08-09T10:15:37+09:00 Subject: Re: For Float#class why is '===' different from '==' Zikiss Chan wrote: > irb(main):001:0> year = 2005 > => 2005 > irb(main):002:0> puts "included" if 2000..2006 === year > included > => nil Here's the key: irb(main):006:0> puts "too bad" if 2000..2004 == year too bad => nil irb(main):007:0> puts "not equal to the range" if 2000..2004 === year not equal to the range => nil -- Posted via http://www.ruby-forum.com/.