Skip to content

Instantly share code, notes, and snippets.

@omgitsads
Created January 16, 2013 16:15
Show Gist options
  • Save omgitsads/4548468 to your computer and use it in GitHub Desktop.
Save omgitsads/4548468 to your computer and use it in GitHub Desktop.
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