Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
FileUtils.options
options
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/fileutils.rb, line 2578
def self.options
OPT_TABLE.values.flatten.uniq.map {|sym| sym.to_s }
end
Returns an array of the string keyword names:
Example
FileUtils.options.take(3) # => ["noop", "verbose", "force"]