From: John Pritchard-williams Date: 2008-09-01T23:21:58+09:00 Subject: Checking for 'nil' Class (not instance) variables? See below, what's the proper way of checking for initialized class-variables ? Cheers John -- irb(main):031:0> @nosuchvar.nil? => true irb(main):032:0> @@nosuchvar.nil? NameError: uninitialized class variable @@nosuchvar in Object from (irb):32 irb(main):033:0> -- Posted via http://www.ruby-forum.com/.