End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
FileUtils.commands
commands
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/fileutils.rb, line 1629
def self.commands
OPT_TABLE.keys
end
Returns an Array of names of high-level methods that accept any keyword arguments.
Example
p FileUtils.commands #=> ["chmod", "cp", "cp_r", "install", ...]
See also
.collect_method
.compare_file
.cmp
.compare_stream
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0