* doc/syntax/refinements.rdoc: Improve description of where you may
activate refinements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
474dc1e816
commit
c0d4ba9f40
@ -1,3 +1,8 @@
|
|||||||
|
Fri Aug 2 09:14:47 2013 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* doc/syntax/refinements.rdoc: Improve description of where you may
|
||||||
|
activate refinements.
|
||||||
|
|
||||||
Fri Aug 2 07:45:55 2013 Tanaka Akira <akr@fsij.org>
|
Fri Aug 2 07:45:55 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* bignum.c (big2str_orig): Remove len argument.
|
* bignum.c (big2str_orig): Remove len argument.
|
||||||
|
@ -48,9 +48,11 @@ Activate the refinement with #using:
|
|||||||
|
|
||||||
== Scope
|
== Scope
|
||||||
|
|
||||||
You may activate refinements at top-level to the end of the file or in a
|
You may only activate refinements at top-level, not inside any class, module
|
||||||
string passed to Kernel#eval, Kernel#instance_eval or Kernel#module_eval until
|
or method scope. You may activate refinements in a string passed to
|
||||||
the end of the string.
|
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.
|
||||||
|
|
||||||
Refinements are lexical in scope. When control is transferred outside the
|
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
|
scope the refinement is deactivated. This means that if you require or load a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user