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/