class HaveAPI::Validators::Custom
Custom
validator. It has only a short form, taking the description of the validator. This validator passes every value. It is up to the developer to implement the validation in HaveAPI::Action.exec
.
Public Instance Methods
describe()
click to toggle source
# File lib/haveapi/validators/custom.rb, line 15 def describe @desc end
setup()
click to toggle source
# File lib/haveapi/validators/custom.rb, line 11 def setup @desc = take end
valid?(v)
click to toggle source
# File lib/haveapi/validators/custom.rb, line 19 def valid?(v) true end