From: Paul Brannan Date: 2007-05-23T19:58:59+09:00 Subject: Re: Simulating single assignment in Ruby I think what you want is a constant: class Foo def initialize sc.const_set(:FOO, 42) end def foo puts sc::FOO end def sc class << self; self; end end end Foo.new.foo #=> 42 (I wish it were possible to use just FOO instead of sc::FOO, but constant lookup in ruby is static). I like Ara's method too. I wouldn't have considered it. Paul