Created
November 4, 2015 00:10
-
-
Save anonymous/874ec48b723e17104ab2 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
def install_log_method() | |
module Kernel | |
def log(*args) | |
#Log::__log_trampoline(self, *args) | |
puts("hello world") | |
end | |
end | |
end | |
#puts("Methods: #{Kernel.methods.grep(/log/).sort.inspect}"); | |
if $0 == __FILE__ | |
install_log_method | |
end | |
#Error | |
#./log.rb:263: syntax error, unexpected keyword_def, expecting ')' | |
#def install_log_method() | |
# ^ | |
#./log.rb:264: module definition in method body | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment