diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-16 00:00:50 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-16 00:00:50 +0900 |
commit | 40806793a97ef3efd4f249682c9cb397962a8cee (patch) | |
tree | c1f06fcdce57c47b5db236923b1ba84f155df80f /lib/English.rb | |
parent | b1003301aff42a8c1d60bc435839502c4aa549ab (diff) |
Fixed class, module and method references [ci skip]
Diffstat (limited to 'lib/English.rb')
-rw-r--r-- | lib/English.rb | 44 |
1 files 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. <tt>See Kernel.caller</tt> for details. Thread local. +# exception. See Kernel#caller for details. Thread local. alias $ERROR_POSITION $@ -# The default separator pattern used by <tt>String.split</tt>. May be -# set from the command line using the <tt>-F</tt> flag. +# The default separator pattern used by String#split. May be set from +# the command line using the <tt>-F</tt> flag. alias $FS $; -# The default separator pattern used by <tt>String.split</tt>. May be -# set from the command line using the <tt>-F</tt> flag. +# The default separator pattern used by String#split. May be set from +# the command line using the <tt>-F</tt> flag. alias $FIELD_SEPARATOR $; # The separator string output between the parameters to methods such -# as <tt>Kernel.print</tt> and <tt>Array.join</tt>. 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 <tt>Kernel.print</tt> and <tt>Array.join</tt>. 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 <tt>Kernel.gets</tt> 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 <tt>Kernel.gets</tt> 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 -# <tt>Kernel.print</tt> and <tt>IO.write</tt>. 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 -# <tt>Kernel.print</tt> and <tt>IO.write</tt>. 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 <tt>Kernel.gets</tt> or -# <tt>Kernel.readline</tt>. Many string-related functions in the -# +Kernel+ module operate on <tt>$_</tt> 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 <tt>$_</tt> by default. The variable is # local to the current scope. Thread local. alias $LAST_READ_LINE $_ -# The destination of output for <tt>Kernel.print</tt> -# and <tt>Kernel.printf</tt>. The default value is +# The destination of output for Kernel#print +# and Kernel#printf. The default value is # <tt>$stdout</tt>. alias $DEFAULT_OUTPUT $> @@ -115,7 +113,7 @@ alias $DEFAULT_OUTPUT $> # given as command-line arguments, or <tt>$stdin</tt> # (in the case where there are no # arguments). <tt>$<</tt> supports methods similar to a -# +File+ object: +# File object: # +inmode+, +close+, # <tt>closed?</tt>, +each+, # <tt>each_byte</tt>, <tt>each_line</tt>, @@ -129,8 +127,8 @@ alias $DEFAULT_OUTPUT $> # +rewind+, +seek+, +skip+, # +tell+, <tt>to_a</tt>, <tt>to_i</tt>, # <tt>to_io</tt>, <tt>to_s</tt>, 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 <tt>$<</tt> reads # through the files on the command line. Read only. alias $DEFAULT_INPUT $< |