End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
FileUtils.options
options
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/fileutils.rb, line 2590
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"]