From: Robert Klemme Date: 2012-04-25T17:00:34+09:00 Subject: Re: if if if statment On Wed, Apr 25, 2012 at 9:54 AM, fox foxmaster wrote: > Thanks Martin, > > But when I do it with elsif it will take me one line further but then > stop with error > /pemi/Downloads/script/ruby/filemanipulate.rb:57:in `
' > > filemanipulate.rb:71:in `block (2 levels) in
': > undefined method `puts=' for # (NoMethodError) >        filemanipulate.rb:58:in `foreach' >        filemanipulate.rb:58:in `block in
> >        filemanipulate.rb:57:in `open' >        filemanipulate.rb:57:in `
' Please post the exact code you are using. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/