Skip to content

Instantly share code, notes, and snippets.

Created November 4, 2015 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/874ec48b723e17104ab2 to your computer and use it in GitHub Desktop.
Save anonymous/874ec48b723e17104ab2 to your computer and use it in GitHub Desktop.
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