From 40806793a97ef3efd4f249682c9cb397962a8cee Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 16 Aug 2019 00:00:50 +0900 Subject: [PATCH] Fixed class, module and method references [ci skip] --- lib/English.rb | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/lib/English.rb b/lib/English.rb index e6da36edcb..ec90ff10cd 100644 --- a/lib/English.rb +++ b/lib/English.rb @@ -52,45 +52,43 @@ module English end if false alias $ERROR_INFO $! # The stack backtrace generated by the last -# exception. See Kernel.caller for details. Thread local. +# exception. See Kernel#caller for details. Thread local. alias $ERROR_POSITION $@ -# The default separator pattern used by String.split. May be -# set from the command line using the -F flag. +# The default separator pattern used by String#split. May be set from +# 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 default separator pattern used by String#split. May be set from +# the command line using the -F 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. +# 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. +# as Kernel#print and Array#join. Defaults to +nil+, which adds no +# text. 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 +# 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 +# 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+. +# 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+. +# 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. @@ -99,14 +97,14 @@ alias $INPUT_LINE_NUMBER $. # The number of the last line read from the current input file. 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 +# 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 # 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 +# The destination of output for Kernel#print +# and Kernel#printf. The default value is # $stdout. alias $DEFAULT_OUTPUT $> @@ -115,7 +113,7 @@ alias $DEFAULT_OUTPUT $> # given as command-line arguments, or $stdin # (in the case where there are no # arguments). $< supports methods similar to a -# +File+ object: +# File object: # +inmode+, +close+, # closed?, +each+, # each_byte, each_line, @@ -129,8 +127,8 @@ alias $DEFAULT_OUTPUT $> # +rewind+, +seek+, +skip+, # +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 +# methods in Enumerable. The method +file+ +# returns a File object for the file currently # being read. This may change as $< reads # through the files on the command line. Read only. alias $DEFAULT_INPUT $<