Method: Attributor::Hash.valid_type?

Defined in:
lib/attributor/types/hash.rb

.valid_type?(type) ⇒ Boolean

Returns:



144
145
146
# File 'lib/attributor/types/hash.rb', line 144

def self.valid_type?(type)
  type.is_a?(self) || type.is_a?(::Hash)
end