Project

General

Profile

Actions

Bug #14671

closed

Refining Module#refine itself introduces strange state

Added by shyouhei (Shyouhei Urabe) over 6 years ago. Updated over 4 years ago.

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

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.

Actions

Also available in: Atom PDF

Like0
Like0