Listing methods within the debugger

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs