Debugging tools Flashcards
1
Q
How to use pry instead of irb?
A
just type pry instead of irb in the console
2
Q
How to get the result of the latest executed command?
A
With ‘_’ last one
‘__’ ( with 2 ‘_’) the previous one before the last
3
Q
How to see all available methods for the object?
A
- ls String
- ls []
4
Q
How to show documentation for the method in pry console?
A
show-doc String#crypt
5
Q
How to show the source of method? ( how was implemented)
A
show-source Array#map