Skip to content

Instantly share code, notes, and snippets.

@havenwood
Last active July 14, 2020 05:55
Show Gist options
  • Save havenwood/885020a56698ccea33df8faf633b68b7 to your computer and use it in GitHub Desktop.
Save havenwood/885020a56698ccea33df8faf633b68b7 to your computer and use it in GitHub Desktop.
class Post
def foo
:foo
end
def bar
self
end
end
Post.new.method(:foo).owner
#=> Post
Post.new.bar
#=> #<Post:0x...>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment