From: dblack@... Date: 2002-08-11T10:36:41+09:00 Subject: Re: extend Html4? Hi -- On Sun, 11 Aug 2002, Harry Ohlsen wrote: > > That's because cgi.rb does a bunch of dynamic creation of methods. > > (Look at #element_init, of which there's one in each of the Html* > > modules.) So those methods don't actually exist until the CGI object > > is created. > > Isn't that just a design issue, though? Since Ruby is a totally dynamic > language, anything that is fundamental to the use of the module could simply > be coded at module-level, and set module-level variables that object > instances and module methods use. > > Mind you, maybe this isn't possible with modules. I do it a lot with > classes, but haven't tried it with a module. I'm not quite following. Do you mean this specifically in relation to the design of cgi.rb? David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav