Validate an object
Parameters:
object to validate
description of the object
the check to use
Raises:
if validation fails
76 77 78 79 80 81 82
# File 'lib/icfs/items.rb', line 76 def self.validate(obj, name, val) err = Validate.check(obj, val) if err raise(Error::Value, '%s has bad values: %s' % [name, err.inspect]) end end