News for hackers. Stuff that matters.
Re:“Did you mean?” Experience in Ruby by dopamean on Thursday October 23, 2014 @01:12PM (#8499326)
I actually follow a very similar pattern when developing in both Ruby and Clojure. I particularly like it in Clojure because I can run `(doc function-name)` to get some documentation on the function I intend to use (I can never remember the order of arguments!!).
Re:“Did you mean?” Experience in Ruby by barrkel on Thursday October 23, 2014 @03:48PM (#8500310)
The pry equivalents are show-doc and show-source.

They don't always work depending on configuration, but it's very nice when they do. They can even go far enough to show the C source for builtins.

Re:“Did you mean?” Experience in Ruby by lhc- on Thursday October 23, 2014 @03:05PM (#8500085)
I do this a lot in the ipython REPL. You can type "method_name?" and see the docstring and some other basic info about the method (like args), its extremely helpful.