Skip to Content

Ruby - 5 pry features every Ruby dev should know

Posted on

pry gem provides many awesome features which you should know.

  • ls to list all methods and variables available in current scope.
  • find-method to search for methods under a namespace.
  • stat to show information of a method.
  • show-source to show source code of a method.
  • show-doc is the same -> show doc of a method.
comments powered by Disqus