Since there may be a lot of Ghost Methods inside a ruby gem, I don\'t think it is a good idea to study the inner mechanism of a ruby gem just by reading
I would avoid editing the Gem files as suggested in the currently accepted answer. Instead, put the debugger
command in one of your app files and use the break
command to set a breakpoint in the gem. I'm using rvm
with a gemset
so here is how I do it:
break /Users/chris/.rvm/gems/ruby-1.9.3-p125@