class OptParseValidator::OptDirectoryPath
Implemetantion of the DirectoryPath Option
Public Class Methods
Source
# File lib/opt_parse_validator/opts/directory_path.rb, line 6 def initialize(option, attrs = {}) super @attrs.merge!(directory: true) end
Calls superclass method
Public Instance Methods
Source
# File lib/opt_parse_validator/opts/directory_path.rb, line 13 def check_create(path) FileUtils.mkdir_p(path.to_s) end
@param [ Pathname ] path