-
-
Save dennisreimann/240219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# poor mans debugger | |
# | |
# if you want to know whats the value of an object just add .why? | |
# and you will see what it is and why your program behaves like it does. | |
# | |
Object.class_eval {def why?; raise "Because it is #{inspect}" ; end} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment