summaryrefslogtreecommitdiff
path: root/doc/syntax
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-30 07:08:53 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-30 07:08:53 +0000
commitb0d1586fa79ff9123db07daf838aee67bc452cf5 (patch)
tree44c173a1ab54b7008074647682f3d1e65856e1f2 /doc/syntax
parent3f7221ad3dbe89832e330079df4b80e633b016ef (diff)
[DOC] Refinements on modules are allowed
From: Leo Correa <lcorr005@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc/syntax')
-rw-r--r--doc/syntax/refinements.rdoc3
1 files changed, 1 insertions, 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