In other languages I have seen ways of showing the code that makes up a function or method. Is there a way to do this in the IRB?
Example, in R, you can simply type a function without the ()
and it will tell you what code will run when the function is called. Simple example here
Is this possible in IRB? (preferably without pry or any other gems)