[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

listing methods within the debugger

John Maclean

7/8/2008 12:02:00 AM

Hey chaps,

I have this line within ~/.irbrc, IRB.conf[:USE_READLINE] = true that starts the debugger. Very handy for me. but check this out;

(rdb:1) var local
ap_path => "/usr/bin/irb"
k => #<TCPSocket:0xb7f572d0>
(rdb:1) k.methods
["methods", "respond_to?", "reject", ...
... extract
...
"to_i"]

(rdb:1) m k
Should be Class/Module: k

does `m` just show the methods that one has defined within an irb
session when the debugger is called?

- jjm