From: Robert Klemme Date: 2012-02-09T00:59:56+09:00 Subject: Re: NOT executing if statement On Wed, Feb 8, 2012 at 4:53 PM, Dave Aronson wrote: > On Mon, Feb 6, 2012 at 17:04, Hasmukh Patel wrote: > >> Dave Aronson wrote in post #1044404: > >>> I think you'll discover you need one more operation.  This >>> shouldn't be too big a challenge to sink your teeth into.  ;-) > >> mathop=mathop.strip > > That will work too.  I was thinking of "chomp" -- the bit about > sinking your teeth into it was supposed to be a hint.  ;-) LOL RFC: irb(main):001:0> class String; def munch;gsub(/\s+/, '') end end => nil irb(main):002:0> "foo bar baz .".munch => "foobarbaz." ;-) Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/