Returns an Array of method names which have the option opt.
p FileUtils.collect_method(:preserve) #=> ["cp", "cp_r", "copy", "install"]
Source Code
# File fileutils.rb, line 1508 def FileUtils.collect_method(opt) OPT_TABLE.keys.select {|m| OPT_TABLE[m].include?(opt) } end
<code/>and<pre/>for code samples.