From: Brian Candler Date: 2008-10-20T02:03:10+09:00 Subject: Re: Using a result as a constant object? Phy Prabab wrote: > I am trying to understand how I can use a return from a method as a > constant name for a class. def get_name "Foo" end n = get_name c = Class.new(ActiveRecord::Base) # superclass Object.const_set(n, c) -- Posted via http://www.ruby-forum.com/.