From: 7stud -- Date: 2009-08-27T02:37:22+09:00 Subject: Re: ||= with 1.8 and 1.9 ? Rick Denatale wrote: >> a1 = A.new >> puts a1.x = 10 >> >> a2 = A.new >> puts a2.x=(10) > >> both versions return the same thing. > > Because they are both using the assignment sugar. Parenthesizing the > 10 doesn't change that. The method name is 'x=' and it was called using 'obj.x='. Where's the sugar? -- Posted via http://www.ruby-forum.com/.