Re: Anonymous classes?
by Jimmy Kofler other posts by this author
Oct 21 2007 2:07AM messages near this date
Re: Anonymous classes?
|
Re: Anonymous classes?
> Re: Anonymous classes?
> Posted by Ben Tilly (btilly) on 21.10.2007 07:28
> Here is what I'd like to do.
>
> anonymous_class = class.new;
>
> # somehow define methods on anonymous_class
>
> # somehow create an object of type anonymous_class
Here's yet another take on it: http://snippets.dzone.com/posts/show/3378
and http://ruby-smalltalk.blogspot.com
Cheers
j. k.
--
Posted via http://www.ruby-forum.com/.
Thread:
Ben Tilly
7stud --
Ben Tilly
Jimmy Kofler
Ben Tilly
Sebastian Hungerecker
Ezra Zygmuntowicz
Ben Tilly
|