Skip to content

Commit 7171238

Browse files
authored
Merge pull request #117 from akihikodaki/master
[DOC] Fix optional argument descriptions
2 parents ada9e1e + c25f069 commit 7171238

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/fileutils.rb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -792,13 +792,13 @@ def ln_sr(src, dest, target_directory: true, force: nil, noop: nil, verbose: nil
792792
# File.file?('dest1/dir1/t2.txt') # => true
793793
# File.file?('dest1/dir1/t3.txt') # => true
794794
#
795-
# Keyword arguments:
795+
# Optional arguments:
796796
#
797-
# - <tt>dereference_root: true</tt> - dereferences +src+ if it is a symbolic link.
798-
# - <tt>remove_destination: true</tt> - removes +dest+ before creating links.
797+
# - +dereference_root+ - dereferences +src+ if it is a symbolic link (+false+ by default).
798+
# - +remove_destination+ - removes +dest+ before creating links (+false+ by default).
799799
#
800800
# Raises an exception if +dest+ is the path to an existing file or directory
801-
# and keyword argument <tt>remove_destination: true</tt> is not given.
801+
# and optional argument +remove_destination+ is not given.
802802
#
803803
# Related: FileUtils.ln (has different options).
804804
#
@@ -1021,12 +1021,12 @@ def cp_r(src, dest, preserve: nil, noop: nil, verbose: nil,
10211021
# directories, and symbolic links;
10221022
# other file types (FIFO streams, device files, etc.) are not supported.
10231023
#
1024-
# Keyword arguments:
1024+
# Optional arguments:
10251025
#
1026-
# - <tt>dereference_root: true</tt> - if +src+ is a symbolic link,
1027-
# follows the link.
1028-
# - <tt>preserve: true</tt> - preserves file times.
1029-
# - <tt>remove_destination: true</tt> - removes +dest+ before copying files.
1026+
# - +dereference_root+ - if +src+ is a symbolic link,
1027+
# follows the link (+false+ by default).
1028+
# - +preserve+ - preserves file times (+false+ by default).
1029+
# - +remove_destination+ - removes +dest+ before copying files (+false+ by default).
10301030
#
10311031
# Related: {methods for copying}[rdoc-ref:FileUtils@Copying].
10321032
#
@@ -1057,12 +1057,12 @@ def copy_entry(src, dest, preserve = false, dereference_root = false, remove_des
10571057
# FileUtils.copy_file('src0.txt', 'dest0.txt')
10581058
# File.file?('dest0.txt') # => true
10591059
#
1060-
# Keyword arguments:
1060+
# Optional arguments:
10611061
#
1062-
# - <tt>dereference: false</tt> - if +src+ is a symbolic link,
1063-
# does not follow the link.
1064-
# - <tt>preserve: true</tt> - preserves file times.
1065-
# - <tt>remove_destination: true</tt> - removes +dest+ before copying files.
1062+
# - +dereference+ - if +src+ is a symbolic link,
1063+
# follows the link (+true+ by default).
1064+
# - +preserve+ - preserves file times (+false+ by default).
1065+
# - +remove_destination+ - removes +dest+ before copying files (+false+ by default).
10661066
#
10671067
# Related: {methods for copying}[rdoc-ref:FileUtils@Copying].
10681068
#

0 commit comments

Comments
 (0)