Method: AttributedObject::Types::HashOf#strict_check
- Defined in:
- lib/attributed_object/types/hash_of.rb
#strict_check(hash) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/attributed_object/types/hash_of.rb', line 9 def strict_check(hash) return false if !hash.is_a?(Hash) hash.all? do |k,v| AttributedObjectHelpers::TypeCheck.check(@key_type_info, k) && AttributedObjectHelpers::TypeCheck.check(@value_type_info, v) end end |