How do you use define_method (or an equivalent) to add a method to a
Class.
I want to create a class from a Database result set at runtime. I
was doing this by building a string and the evaling it, which works,
but wasn't all that rubyish and was ugly.
I am now using an Anonymous class ie Class.new{...} and everything is
great except I can't seem to create a class method this way.
I know I am missing something quite obvious, I just can't seem to
find it.
Any pointers would be greatly appreciated.
Thanks,
Walt
···
*****************************************************
Walter Szewelanczyk
IS Director
M.W. Sewall & CO. email : walter@mwsewall.com
259 Front St. Phone : (207) 442-7994 x 128
Bath, ME 04530 Fax : (207) 443-6284
*****************************************************