diff options
author | Keith R. Bennett <[email protected]> | 2023-02-11 14:43:14 +0700 |
---|---|---|
committer | git <[email protected]> | 2023-11-07 07:24:50 +0000 |
commit | 78e07e29836cc9af74865f4f7234a22a6f6e752e (patch) | |
tree | 1673ede32a27a2e7dc2167b7463e1a23511f12d5 /lib/English.rb | |
parent | 1f2796d04116d5205d142d87146cc4a5aa0113c1 (diff) |
[ruby/English] Combine duplicate aliases into single sections to more clearly denote sameness and make more concise.
https://github.com/ruby/English/commit/dcff090f6f
Diffstat (limited to 'lib/English.rb')
-rw-r--r-- | lib/English.rb | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/English.rb b/lib/English.rb index 21acc38944..03fe721991 100644 --- a/lib/English.rb +++ b/lib/English.rb @@ -57,44 +57,32 @@ alias $ERROR_POSITION $@ # The default separator pattern used by String#split. May be set from # the command line using the <code>-F</code> flag. alias $FS $; - -# The default separator pattern used by String#split. May be set from -# the command line using the <code>-F</code> flag. alias $FIELD_SEPARATOR $; # The separator string output between the parameters to methods such # as Kernel#print and Array#join. Defaults to +nil+, which adds no # text. -alias $OFS $, # The separator string output between the parameters to methods such # as Kernel#print and Array#join. Defaults to +nil+, which adds no # text. +alias $OFS $, alias $OUTPUT_FIELD_SEPARATOR $, # The input record separator (newline by default). This is the value # that routines such as Kernel#gets use to determine record # boundaries. If set to +nil+, +gets+ will read the entire file. alias $RS $/ - -# The input record separator (newline by default). This is the value -# that routines such as Kernel#gets use to determine record -# boundaries. If set to +nil+, +gets+ will read the entire file. alias $INPUT_RECORD_SEPARATOR $/ # The string appended to the output of every call to methods such as # Kernel#print and IO#write. The default value is +nil+. alias $ORS $\ - -# The string appended to the output of every call to methods such as -# Kernel#print and IO#write. The default value is +nil+. alias $OUTPUT_RECORD_SEPARATOR $\ # The number of the last line read from the current input file. -alias $INPUT_LINE_NUMBER $. - -# The number of the last line read from the current input file. alias $NR $. +alias $INPUT_LINE_NUMBER $. # The last line read by Kernel#gets or # Kernel#readline. Many string-related functions in the @@ -134,8 +122,6 @@ alias $DEFAULT_INPUT $< # The process number of the program being executed. Read only. alias $PID $$ - -# The process number of the program being executed. Read only. alias $PROCESS_ID $$ # The exit status of the last child process to terminate. Read |