Module: Usher::Route::Variable::ProcValidator
- Defined in:
- lib/usher/route/variable.rb
Instance Method Summary collapse
Instance Method Details
#valid!(val) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/usher/route/variable.rb', line 27 def valid!(val) begin @validator.call(val) rescue Exception => e raise ValidationException.new("#{val} does not conform to #{@validator}, root cause #{e.inspect}") end end |