Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
FileUtils.options
() -> ::Array[::String]
options
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/fileutils.rb, line 2580
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"]