Skip to content

Method#owner returns wrong implementation module #4262

@etehtsea

Description

@etehtsea

Kernel#method used in examples but it seems that both methods are relying on implementationModule variable.

JRuby master (actually proper implementation called in RubyIO):

>> s0.method(:inspect)
=> #<Method: UNIXSocket(Kernel)#inspect>

MRI:

[17] pry(main)> s0.method(:inspect)
=> #<Method: UNIXSocket(IO)#inspect>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions