From: shyouhei@... Date: 2018-04-10T06:27:40+00:00 Subject: [ruby-core:86487] [Ruby trunk Bug#14671] Refining Module#refine itself introduces strange state Issue #14671 has been reported by shyouhei (Shyouhei Urabe). ---------------------------------------- Bug #14671: Refining Module#refine itself introduces strange state https://bugs.ruby-lang.org/issues/14671 * Author: shyouhei (Shyouhei Urabe) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.6.0dev (2018-04-09 trunk 63122) [x86_64-darwin15] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- ```ruby 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. -- https://bugs.ruby-lang.org/ Unsubscribe: