class Wpxf::PathOption

A file system path option.

Public Instance Methods

valid?(value) click to toggle source

Check if the specified value is valid in the context of this option. @param value the value to validate. @return [Boolean] true if valid.

Calls superclass method Wpxf::Option#valid?
# File lib/wpxf/core/opts/path_option.rb, line 10
def valid?(value)
  return super if empty?(value)
  File.exist?(value)
end