Hi,

I am sorry that I don't understand what you meant.  I am using ruby 1.6.7
(2002-03-01) [i686-linux]:

# -------------------------------------------
class MyClass
	def initialize
		data = false
		data ||= true
		puts data	# >> true
		@data = false
		@data ||= true
		puts @data	# >> true
		@@data = false
		@@data ||= true
		puts @@data	# >> true
	end
end
MyClass.new
# -------------------------------------------

It seems that the ||= operator works for local, instance, and class
variables.

Regards,

Bill
===========================================================================
Kontra, Gergely <kgergely / mlabdial.hit.bme.hu> wrote:
>>> - the ||= operator exists :-)
> But not for class variables...