Created
April 29, 2011 13:37
-
-
Save teleological/948302 to your computer and use it in GitHub Desktop.
FFI internals 4
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
module RubyInternals | |
def define_iseq_singleton_method(mod,sel,iseq) | |
mod.module_eval do | |
RubyCore.send("core#define_singleton_method",mod,sel,iseq) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment