From: Aldric Giacomoni Date: 2009-08-27T00:00:23+09:00 Subject: ||= with 1.8 and 1.9 ? A friend of mine on Twitter recently posted this tidbit of code: class OrOrEquals def test @test end def test=(test) @test = test 'not test' end end p (OrOrEquals.new.test = 'test') # ruby 1.8 returns 'test' # ruby 1.9 returns 'test' p (OrOrEquals.new.test ||= 'test') # ruby 1.8 returns 'test' # ruby 1.9 returns 'not test' It works as indicated. Is this -normal- behavior ? -- Posted via http://www.ruby-forum.com/.