stdlib/fileutils/0/fileutils.rbs in rbs-3.3.2 vs stdlib/fileutils/0/fileutils.rbs in rbs-3.4.0.pre.1
- old
+ new
@@ -236,12 +236,10 @@
#
# cd ..
# cd fileutils
#
#
- # FileUtils.chdir is an alias for FileUtils.cd.
- #
# Related: FileUtils.pwd.
#
def self?.cd: (path dir, ?verbose: boolish) -> void
| [X] (path dir, ?verbose: boolish) { (String) -> X } -> X
@@ -650,12 +648,10 @@
# cp src2.txt src2.dat dest2
#
#
# Raises an exception if `src` is a directory.
#
- # FileUtils.copy is an alias for FileUtils.cp.
- #
# Related: [methods for copying](rdoc-ref:FileUtils@Copying).
#
def self?.cp: (pathlist src, path dest, ?preserve: boolish, ?noop: boolish, ?verbose: boolish) -> void
# <!--
@@ -1064,12 +1060,10 @@
#
#
# Raises an exception if `dest` is the path to an existing file and keyword
# argument `force` is not `true`.
#
- # FileUtils#link is an alias for FileUtils#ln.
- #
# Related: FileUtils.link_entry (has different options).
#
def self?.ln: (pathlist src, path dest, ?force: boolish, ?noop: boolish, ?verbose: boolish) -> void
# <!--
@@ -1155,12 +1149,10 @@
# ln -s src1.txt destdir1
# ln -sf src2.txt dest2.txt
# ln -s srcdir3/src0.txt srcdir3/src1.txt destdir3
#
#
- # FileUtils.symlink is an alias for FileUtils.ln_s.
- #
# Related: FileUtils.ln_sf.
#
def self?.ln_s: (pathlist src, path dest, ?force: boolish, ?relative: boolish, ?target_directory: boolish, ?noop: boolish, ?verbose: boolish) -> void
# <!--
@@ -1366,13 +1358,10 @@
# Output:
#
# mv src0 dest0
# mv src1.txt src1 dest1
#
- #
- # FileUtils.move is an alias for FileUtils.mv.
- #
def self?.mv: (pathlist src, path dest, ?force: boolish, ?noop: boolish, ?verbose: boolish, ?secure: boolish) -> void
# <!--
# rdoc-file=lib/fileutils.rb
# - move(src, dest, force: nil, noop: nil, verbose: nil, secure: nil)
@@ -1415,12 +1404,10 @@
# -->
# Returns a string containing the path to the current directory:
#
# FileUtils.pwd # => "/rdoc/fileutils"
#
- # FileUtils.getwd is an alias for FileUtils.pwd.
- #
# Related: FileUtils.cd.
#
def self?.pwd: () -> String
# <!--
@@ -1536,12 +1523,10 @@
# Output:
#
# rm src0.dat src0.txt
#
#
- # FileUtils.remove is an alias for FileUtils.rm.
- #
# Related: [methods for deleting](rdoc-ref:FileUtils@Deleting).
#
def self?.rm: (pathlist list, ?force: boolish, ?noop: boolish, ?verbose: boolish) -> void
# <!--
@@ -1569,12 +1554,10 @@
# Argument `list` (a single path or an array of paths) should be [interpretable
# as paths](rdoc-ref:FileUtils@Path+Arguments).
#
# See FileUtils.rm for keyword arguments.
#
- # FileUtils.safe_unlink is an alias for FileUtils.rm_f.
- #
# Related: [methods for deleting](rdoc-ref:FileUtils@Deleting).
#
def self?.rm_f: (pathlist list, ?noop: boolish, ?verbose: boolish) -> void
# <!--
@@ -1661,11 +1644,9 @@
# May cause a local vulnerability if not called with keyword argument `secure:
# true`; see [Avoiding the TOCTTOU
# Vulnerability](rdoc-ref:FileUtils@Avoiding+the+TOCTTOU+Vulnerability).
#
# See FileUtils.rm_r for keyword arguments.
- #
- # FileUtils.rmtree is an alias for FileUtils.rm_rf.
#
# Related: [methods for deleting](rdoc-ref:FileUtils@Deleting).
#
def self?.rm_rf: (pathlist list, ?noop: boolish, ?verbose: boolish, ?secure: boolish) -> void