diff options
author | NARUSE, Yui <naruse@airemix.jp> | 2020-11-05 20:54:34 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2020-11-05 20:54:34 +0900 |
commit | 3407b7d8a620562d0584cd2968965317f331f8cc (patch) | |
tree | c1aa1764e2f28f30280030aa511a4ff5665d382c /lib/un.rb | |
parent | b29fe5eb2ded0363c631b2739676e631ed024d66 (diff) |
Revert "Prefer #send over #__send__ when it is clear there is no possible conflict"
This reverts commit 4dba0c1a8e3cc08664872e637099c4e7d58d24d3.
Matz's comment is "send is not deprecated. __send__ is safer".
But "Prefer #send over #__send__" is not reasonable.
Diffstat (limited to 'lib/un.rb')
-rw-r--r-- | lib/un.rb | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -88,7 +88,7 @@ def cp options[:preserve] = true if options.delete :p dest = argv.pop argv = argv[0] if argv.size == 1 - FileUtils.send cmd, argv, dest, **options + FileUtils.__send__ cmd, argv, dest, **options end end @@ -109,7 +109,7 @@ def ln options[:force] = true if options.delete :f dest = argv.pop argv = argv[0] if argv.size == 1 - FileUtils.send cmd, argv, dest, **options + FileUtils.__send__ cmd, argv, dest, **options end end @@ -144,7 +144,7 @@ def rm cmd = "rm" cmd += "_r" if options.delete :r options[:force] = true if options.delete :f - FileUtils.send cmd, argv, **options + FileUtils.__send__ cmd, argv, **options end end @@ -161,7 +161,7 @@ def mkdir setup("p") do |argv, options| cmd = "mkdir" cmd += "_p" if options.delete :p - FileUtils.send cmd, argv, **options + FileUtils.__send__ cmd, argv, **options end end |