diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-03-06 13:03:58 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-03-06 13:06:49 -0800 |
commit | f991340e07e76038b044d73ef41bd0cdeb68cf62 (patch) | |
tree | f1f5425889cc20e1e033aae5085172b9d35b8ad5 /eval.c | |
parent | c3584dfacce4d0f2058d8403de6fdce4fd4d686b (diff) |
Document defined? and global_variables handling of regexp global variables [ci skip]
Fixes [Bug #11304]
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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] */ |