[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Inheritence Diagram of Ruby classes...

Zach Dennis

11/7/2003 4:37:00 AM

Since this thread has came up I've been doing some digging, thanks to Eric
Hodel and Austin for sparking my interest with their attachments and links.
I've been doing some dabbling into the Kernel's public_method and
private_method to determine what belongs to an object.

I found it useful for myself today doing some Tk stuff so I thought I might
pass it along. Here is a quick implementation of it:


require 'tk'

ar = TkRoot.public_methods
ar.each{ |x| puts x }

ar = TkRoot.private_methods
ar.each{ |x| puts x }


Zach