Skip to content

Instantly share code, notes, and snippets.

View markijbema's full-sized avatar

Mark IJbema markijbema

  • Cogitans
  • Groningen, Netherlands
View GitHub Profile
@henrik
henrik / ruby_2.1_experiment.rb
Last active January 4, 2016 09:49
Toying with Ruby 2.1 methods returning symbols.
module Wrapping
def wrap(method_name, &block)
# Alternative implementations: either will do the trick.
wrap_with_prepend(method_name, &block)
#wrap_with_bind(method_name, &block)
end
private
def wrap_with_prepend(method_name)