mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
04cf3fa346
commit
be5a436f13
2 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue