⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (176 Bytes)
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)
Loading...