Skip to content

Instantly share code, notes, and snippets.

@havenwood
Last active July 14, 2020 05:55
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