Issue #7262 has been updated by shugo (Shugo Maeda).

Status changed from Assigned to Closed

r38298???r38328??§å¯¾å¿?????????®ã??close?????¾ã?????
???å¾???¨é????????ä½??????£ã?????reopen?????¦ã????????????? > ??¾ã?¤ã????¨ã?????

----------------------------------------
Bug #7262: module extension (#include/#prepend) in refinements
https://bugs.ruby-lang.org/issues/7262#change-34679

Author: matz (Yukihiro Matsumoto)
Status: Closed
Priority: Normal
Assignee: shugo (Shugo Maeda)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-01 trunk 37415) [i486-linux]


refinement??®ä¸­??§ã?¢ã?¸ã?¥ã?¼ã?«ã??include???prepend????????????(?????¤ã???????®ã?¹ã?³ã?¼ã????®ç????²å??????????§æ????¹ã?«ã????????)??ªã????¦æ????£ã???????§ã?????????????£ã?¨å?°é?£ã?§ã???????­ã??
?????¡ç???????¨æ????£ã??????????®ã?ªã??reject?????¦ã?????????????

  module Experiment
    refine String do
      include Enumerable
      def foo; p :foo; end
    end
  end

  using Experiment
  "foo".foo
  "foo".each(&:p)

Matz.



-- 
http://bugs.ruby-lang.org/