aboutsummaryrefslogtreecommitdiffstats
path: root/lib/un.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-11-05 11:23:27 +0100
committerBenoit Daloze <eregontp@gmail.com>2020-11-05 11:23:27 +0100
commit4dba0c1a8e3cc08664872e637099c4e7d58d24d3 (patch)
treed86deaec8225b8c82acc58a9ce655d94b4bd9311 /lib/un.rb
parent2aa9a50dcc88b876f8298adda737400973e8029f (diff)
downloadruby-4dba0c1a8e3cc08664872e637099c4e7d58d24d3.tar.gz
Prefer #send over #__send__ when it is clear there is no possible conflict
* Reverts part of 3198e7abd70bd2af977f2bb6c967e9df8f91adb0. * If the rule is #send should be deprecated, that should be ruled by matz, there is no such rule currently and gems seem to prefer #send overwhelmingly.
Diffstat (limited to 'lib/un.rb')
-rw-r--r--lib/un.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/un.rb b/lib/un.rb
index a759328ec4..628260a7fa 100644
--- a/lib/un.rb
+++ b/lib/un.rb
@@ -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