-
-
Save egwspiti/e450588a8585d23e1fa2 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
xxx = Symbol.method_defined?(:call) && Symbol.instance_method(:call) | |
Symbol.class_eval { undef :call } if xxx | |
# some code that fails when call is defined on Symbol | |
Symbol.instance_eval { define_method(:call, xxx) } if xxx | |
kyrylo
commented
Jun 30, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment