Module: Usher::Route::Variable::CaseEqualsValidator

Includes:
Validator
Defined in:
lib/usher/route/variable.rb

Instance Method Summary collapse

Methods included from Validator

#validates?

Instance Method Details

#valid!(val) ⇒ Object



24
25
26
# File 'lib/usher/route/variable.rb', line 24

def valid!(val)
  @validator === val.to_s or raise(ValidationException.new("#{val} does not conform to #{@validator}"))
end