ruby-changes:56437
From: Benoit <ko1@a...>
Date: Sat, 13 Jul 2019 22:48:11 +0900 (JST)
Subject: [ruby-changes:56437] Benoit Daloze: 237b3e00c7 (master): Document $~ before dependent global variables
https://git.ruby-lang.org/ruby.git/commit/?id=237b3e00c7 From 237b3e00c72bff89b97d04d0a15200949ac1ee56 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Sat, 13 Jul 2019 15:39:54 +0200 Subject: Document $~ before dependent global variables diff --git a/doc/globals.rdoc b/doc/globals.rdoc index b1e0369..8729ff2 100644 --- a/doc/globals.rdoc +++ b/doc/globals.rdoc @@ -4,12 +4,12 @@ https://github.com/ruby/ruby/blob/trunk/doc/globals.rdoc#L4 $!:: The exception information message set by 'raise'. $@:: Array of backtrace of the last exception thrown. +$~:: The information about the last match in the current scope (thread-local and frame-local). $&:: The string matched by the last successful match. $`:: The string to the left of the last successful match. $':: The string to the right of the last successful match. $+:: The highest group matched by the last successful match. $1:: The Nth group of the last successful match. May be > 1. -$~:: The information about the last match in the current scope. $=:: This variable is no longer effective. Deprecated. $/:: The input record separator, newline by default. Aliased to $-0. $\:: The output record separator for the print and IO#write. Default is nil. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/