From b0d1586fa79ff9123db07daf838aee67bc452cf5 Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 30 Jan 2018 07:08:53 +0000 Subject: [DOC] Refinements on modules are allowed From: Leo Correa git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- doc/syntax/refinements.rdoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/syntax/refinements.rdoc b/doc/syntax/refinements.rdoc index 3f97e6b051..34ca3a1983 100644 --- a/doc/syntax/refinements.rdoc +++ b/doc/syntax/refinements.rdoc @@ -26,8 +26,7 @@ Here is a basic refinement: end First, a class +C+ is defined. Next a refinement for +C+ is created using -Module#refine. Refinements only modify classes, not modules so the argument -must be a class. +Module#refine. Refinements can modify both classes and modules. Module#refine creates an anonymous module that contains the changes or refinements to the class (+C+ in the example). +self+ in the refine block is -- cgit v1.2.3