Project

General

Profile

Bug #16106 ยป unbound_method_owner_sketch.rb

sbellware (Scott Bellware), 08/15/2019 08:17 PM

 
class SomeClass
def some_method
end
end

C = Class.new(SomeClass)

m = C.instance_method(:some_method)

pp m.owner
# => SomeClass

# I would have expected the owner to be C
    (1-1/1)