Allow matching mapper input directly on type
This commit is contained in:
parent
d1974d9a00
commit
5c6587f688
@ -48,7 +48,7 @@ module VagrantPlugins
|
||||
# @param arg [Object] Argument to validate
|
||||
# @return [Boolean]
|
||||
def valid?(arg)
|
||||
if !arg.is_a?(type)
|
||||
if !arg.is_a?(type) && arg != type
|
||||
return false
|
||||
end
|
||||
validator.call(arg)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user