From: Hans Mackowiak Date: 2013-06-02T21:17:10+09:00 Subject: Re: Is it a bug(about constant reference on dynamic class). tamara is wrong :: works with anoymous classes too: c = Class.new { def hello p self.class.constants p self.class::C_0 end } c::C_0 = "set with ::" #=> "set with ::" c0 = c.new #=> #<#:0x00000002d08228> c0.hello #[:C_0] #=> "set with ::" -- Posted via http://www.ruby-forum.com/.