Created
September 18, 2014 02:12
-
-
Save jah2488/0a86eb0ff6ccbd313f63 to your computer and use it in GitHub Desktop.
Some Kernel methods to aid in debugging / code readability from Michael Feather's blog post https://michaelfeathers.silvrback.com/literate-chains-for-functional-programming
This file contains hidden or 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
| module Kernel | |
| def c(*) | |
| self | |
| end | |
| def show(&block) | |
| def c(*args) puts args, self; end | |
| block.call | |
| def c(*) self; end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment