From: Reid Thompson Date: 2007-06-14T10:26:03+09:00 Subject: Re: Dynamically referencing class constants? On Thu, 2007-06-14 at 10:16 +0900, list. rb wrote: > How can I do this? > > Socket.constants.each {|i| > puts Socket::"#{i}" ##does not work of course > } puts "Socket::#{i}"