From: Alexander Bokovoy Date: 2001-12-17T23:08:51+09:00 Subject: [ruby-talk:28766] Re: RDoc - Document Ruby source files On Mon, Dec 17, 2001 at 10:57:30PM +0900, Dave Thomas wrote: > Alexander Bokovoy writes: > > > However, I would like to see support for dynamically generated classes > > like this one: > > > .. code snipped > > > > Which produces set of nested modules and class definition stubs according > > to content of $MidgardObjects hash. Currently rdoc does not understand > > this while this technique is quite useful in Ruby. > > > > Does anybody have ideas how we could improve rdoc for this? > > In the limit case, we could have > > puts "Enter name for new class" > name = gets.chomp > eval %{ class #{name}; .... } > > I'm not sure that there's a general way of dealing with this. Is there a way to execute some code inside your application in an isolated environment and reliably catch all errors/context without crashing own application in case when some unresolved symbols or something like that are exist? -- / Alexander Bokovoy $ cat /proc/identity >~/.signature `Senior software developer and analyst for SaM-Solutions Ltd.` --- Nov 21 20:58:58 alconost kernel: VFS: Busy inodes after unmount. Self-destruct in 5 seconds. Have a nice day...