Hi,

Am Dienstag, 27. Jan 2009, 17:20:13 +0900 schrieb Robert Klemme:
> is_between = now > yesterday && now < tomorrow
> is_between = now > yesterday and now < tomorrow

Sorry, Robert, but in the second case the binding is

  (is_between = now > yesterday) and now < tomorrow

Or

  irb(main):001:0> a,b,c=1,4,2
  => [1, 4, 2]
  irb(main):002:0> i = b>a and b<c
  => false
  irb(main):003:0> i
  => true

A common Ruby pitfall...

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de