Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo
- def self.bar
- puts "bar"
- end
- end
- bar = Foo.method(:bar)
- puts Foo
- puts bar.owner
- puts Foo == bar.owner
- # Foo
- # #<Class:Foo>
- # false
- # what's happening here? how can i resolve this?
Add Comment
Please, Sign In to add comment