Skip to content

Instantly share code, notes, and snippets.

@jah2488
Created September 18, 2014 02:12
Show Gist options
  • Select an option

  • Save jah2488/0a86eb0ff6ccbd313f63 to your computer and use it in GitHub Desktop.

Select an option

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
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