From: "matz (Yukihiro Matsumoto)" Date: 2022-09-22T03:46:01+00:00 Subject: [ruby-core:109987] [Ruby master Bug#18729] Method#owner and UnboundMethod#owner are incorrect after using Module#public/protected/private Issue #18729 has been updated by matz (Yukihiro Matsumoto). After playing with the committed new behavior, I have noticed some points, and changed my mind (I am sorry for being late to reply). Look at the following example: ```ruby class C0 def foo [:foo] end end class C1, A, [], [:foo]] [#, A, [:foo], [:foo]] ``` So `UnboundMethod#owner` says `A`, but clearly there is a :foo method entry in B created by `public :foo`, and that is shown through `B.instance_methods(false)`. The expected output is: ``` [#, A, [], [:foo]] [#, B, [:foo], [:foo]] ``` -- https://bugs.ruby-lang.org/ Unsubscribe: