mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Document defined? and global_variables handling of regexp global variables [ci skip]
Fixes [Bug #11304]
This commit is contained in:
parent
c3584dfacc
commit
f991340e07
2 changed files with 34 additions and 1 deletions
5
eval.c
5
eval.c
|
@ -1996,7 +1996,10 @@ f_current_dirname(VALUE _)
|
|||
* call-seq:
|
||||
* global_variables -> array
|
||||
*
|
||||
* Returns an array of the names of global variables.
|
||||
* Returns an array of the names of global variables. This includes
|
||||
* special regexp global variables such as <tt>$~</tt> and <tt>$+</tt>,
|
||||
* but does not include the numbered regexp global variables (<tt>$1</tt>,
|
||||
* <tt>$2</tt>, etc.).
|
||||
*
|
||||
* global_variables.grep /std/ #=> [:$stdin, :$stdout, :$stderr]
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue