Method: HaveAPI::Validators::Format#setup
- Defined in:
- lib/haveapi/validators/format.rb
#setup ⇒ Object
19 20 21 22 23 24 |
# File 'lib/haveapi/validators/format.rb', line 19 def setup @rx = simple? ? take : take(:rx) @match = take(:match, true) @desc = take(:desc) @message = take(:message, @desc || '%{value} is not in a valid format') end |