From be5a436f13ac9ebc2fcc1f2cc690cf420c83da59 Mon Sep 17 00:00:00 2001 From: drbrain Date: Fri, 2 Aug 2013 19:24:14 +0000 Subject: * doc/syntax/refinements.rdoc: Remove mention of instance_eval and module_eval from scope section per: http://twitter.com/shugomaeda/status/363219951336693761 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- doc/syntax/refinements.rdoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'doc/syntax/refinements.rdoc') diff --git a/doc/syntax/refinements.rdoc b/doc/syntax/refinements.rdoc index 752f668923..1a516ed8b2 100644 --- a/doc/syntax/refinements.rdoc +++ b/doc/syntax/refinements.rdoc @@ -50,9 +50,8 @@ Activate the refinement with #using: You may only activate refinements at top-level, not inside any class, module or method scope. You may activate refinements in a string passed to -Kernel#eval, Kernel#instance_eval or Kernel#module_eval that is evaluated at -top-level. Refinements are active until the end of the file or the end of the -eval string, respectively. +Kernel#eval that is evaluated at top-level. Refinements are active until the +end of the file or the end of the eval string, respectively. Refinements are lexical in scope. When control is transferred outside the scope the refinement is deactivated. This means that if you require or load a -- cgit v1.2.3