diff --git a/lib/English.rb b/lib/English.rb index ec90ff10cd..da50dfdc29 100644 --- a/lib/English.rb +++ b/lib/English.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true # Include the English library file in a Ruby script, and you can -# reference the global variables such as $_ using less +# reference the global variables such as $_ using less # cryptic names, listed below. # # Without 'English': @@ -56,11 +56,11 @@ alias $ERROR_INFO $! alias $ERROR_POSITION $@ # The default separator pattern used by String#split. May be set from -# the command line using the -F flag. +# the command line using the -F flag. alias $FS $; # The default separator pattern used by String#split. May be set from -# the command line using the -F flag. +# the command line using the -F flag. alias $FIELD_SEPARATOR $; # The separator string output between the parameters to methods such @@ -99,37 +99,37 @@ alias $NR $. # The last line read by Kernel#gets or # Kernel#readline. Many string-related functions in the -# Kernel module operate on $_ by default. The variable is +# Kernel module operate on $_ by default. The variable is # local to the current scope. Thread local. alias $LAST_READ_LINE $_ # The destination of output for Kernel#print # and Kernel#printf. The default value is -# $stdout. +# $stdout. alias $DEFAULT_OUTPUT $> # An object that provides access to the concatenation # of the contents of all the files -# given as command-line arguments, or $stdin +# given as command-line arguments, or $stdin # (in the case where there are no -# arguments). $< supports methods similar to a +# arguments). $< supports methods similar to a # File object: # +inmode+, +close+, -# closed?, +each+, -# each_byte, each_line, -# +eof+, eof?, +file+, +# closed?, +each+, +# each_byte, each_line, +# +eof+, eof?, +file+, # +filename+, +fileno+, # +getc+, +gets+, +lineno+, -# lineno=, +path+, -# +pos+, pos=, +# lineno=, +path+, +# +pos+, pos=, # +read+, +readchar+, # +readline+, +readlines+, # +rewind+, +seek+, +skip+, -# +tell+, to_a, to_i, -# to_io, to_s, along with the +# +tell+, to_a, to_i, +# to_io, to_s, along with the # methods in Enumerable. The method +file+ # returns a File object for the file currently -# being read. This may change as $< reads +# being read. This may change as $< reads # through the files on the command line. Read only. alias $DEFAULT_INPUT $< @@ -144,9 +144,9 @@ alias $PROCESS_ID $$ alias $CHILD_STATUS $? # A +MatchData+ object that encapsulates the results of a successful -# pattern match. The variables $&, $`, $', -# and $1 to $9 are all derived from -# $~. Assigning to $~ changes the values of these +# pattern match. The variables $&, $`, $', +# and $1 to $9 are all derived from +# $~. Assigning to $~ changes the values of these # derived variables. This variable is local to the current # scope. alias $LAST_MATCH_INFO $~ @@ -176,7 +176,7 @@ alias $PREMATCH $` alias $POSTMATCH $' # The contents of the highest-numbered group matched in the last -# successful pattern match. Thus, in "cat" =~ /(c|a)(t|z)/, -# $+ will be set to "t". This variable is local to the +# successful pattern match. Thus, in "cat" =~ /(c|a)(t|z)/, +# $+ will be set to "t". This variable is local to the # current scope. Read only. alias $LAST_PAREN_MATCH $+