On Thu, Feb 20, 2003 at 02:25:30AM +0900, Yukihiro Matsumoto wrote:
> |So more general question, what is the recommended way to generate a class
> |with a dynamic name? I really want to avoid the string version of eval:
> |
> |   klassname="Foo"
> |   eval "class #{klassname} ... "
> 
>   Foo = Class.new(super) {
>      def foo
>        ...
>      end
>      ...
>   }
> 
> 							matz.
> p.s.
> Hey, we need no English, just Ruby to talk with.

You must concede that Guy Decoux had the idea first (or was the first
one to really implement it :)

Now, how do I say that in Ruby?

 idea = ideas['Ruby to communicate']
 idea.inventor?('Guy Decoux')
 => true

-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

And Bruce is effectively building BruceIX
	-- Alan Cox