listing methods within the debugger

J

John Maclean

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top