Skip to content

Instantly share code, notes, and snippets.

@omgitsads
Created January 16, 2013 16:15
module StringTest
def hello
"hello"
end
end
class String
include StringTest
end
"".instance_eval { method(:hello) }.owner
# => StringTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment