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