Class: Optout::Dir
Overview
Optout::Dir
is a validaton rule that can be used to check that an option’s value is a path to a directory. This class proivdes the same functionality for directories that Optout::File provides for files. See Optout::File for more info.
Validation rules can be combined:
Optout. do
on :path, "--path", Optout::Dir.exists.under("/tmp").named(/\d$/)
end
See Optout::File for a list of methods.
Class Method Summary collapse
-
.proxy_for ⇒ Object
:nodoc:.