Project

General

Profile

Bug #14671

Refining Module#refine itself introduces strange state

Added by shyouhei (Shyouhei Urabe) 10 days ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.6.0dev (2018-04-09 trunk 63122) [x86_64-darwin15]
[ruby-core:86487]

Description

using Module.new {
  refine Module do
    def refine *;
      puts self
    end
    public :refine
  end
}
Object.refine # => NoMethodError

It is possible to refine Module#refine, but there seems to be no way to call it.

Also available in: Atom PDF