Skip to content

Commit dcff090

Browse files
committed
Combine duplicate aliases into single sections to more clearly denote sameness and make more concise.
1 parent 3e046f3 commit dcff090

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

lib/English.rb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,44 +58,32 @@ module English end if false
5858
# The default separator pattern used by String#split. May be set from
5959
# the command line using the <code>-F</code> flag.
6060
alias $FS $;
61-
62-
# The default separator pattern used by String#split. May be set from
63-
# the command line using the <code>-F</code> flag.
6461
alias $FIELD_SEPARATOR $;
6562

6663
# The separator string output between the parameters to methods such
6764
# as Kernel#print and Array#join. Defaults to +nil+, which adds no
6865
# text.
69-
alias $OFS $,
7066

7167
# The separator string output between the parameters to methods such
7268
# as Kernel#print and Array#join. Defaults to +nil+, which adds no
7369
# text.
70+
alias $OFS $,
7471
alias $OUTPUT_FIELD_SEPARATOR $,
7572

7673
# The input record separator (newline by default). This is the value
7774
# that routines such as Kernel#gets use to determine record
7875
# boundaries. If set to +nil+, +gets+ will read the entire file.
7976
alias $RS $/
80-
81-
# The input record separator (newline by default). This is the value
82-
# that routines such as Kernel#gets use to determine record
83-
# boundaries. If set to +nil+, +gets+ will read the entire file.
8477
alias $INPUT_RECORD_SEPARATOR $/
8578

8679
# The string appended to the output of every call to methods such as
8780
# Kernel#print and IO#write. The default value is +nil+.
8881
alias $ORS $\
89-
90-
# The string appended to the output of every call to methods such as
91-
# Kernel#print and IO#write. The default value is +nil+.
9282
alias $OUTPUT_RECORD_SEPARATOR $\
9383

94-
# The number of the last line read from the current input file.
95-
alias $INPUT_LINE_NUMBER $.
96-
9784
# The number of the last line read from the current input file.
9885
alias $NR $.
86+
alias $INPUT_LINE_NUMBER $.
9987

10088
# The last line read by Kernel#gets or
10189
# Kernel#readline. Many string-related functions in the
@@ -135,8 +123,6 @@ module English end if false
135123

136124
# The process number of the program being executed. Read only.
137125
alias $PID $$
138-
139-
# The process number of the program being executed. Read only.
140126
alias $PROCESS_ID $$
141127

142128
# The exit status of the last child process to terminate. Read

0 commit comments

Comments
 (0)