Skip to content
class method

FileUtils.have_option?

(::Symbol mid, ::Symbol opt) -> bool
have_option?(mid, opt)

Returns true if method mid accepts the given option opt, false otherwise; the arguments may be strings or symbols:

Example
FileUtils.have_option?(:chmod, :noop) # => true
FileUtils.have_option?('chmod', 'secure') # => false
See also .getwd .identical? .cp_r .install also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0