Class: Attributary::Types::HashType
- Defined in:
- lib/attributary/types/hash_type.rb
Class Method Summary collapse
Class Method Details
.cast_to(value) ⇒ Object
4 5 6 |
# File 'lib/attributary/types/hash_type.rb', line 4 def self.cast_to(value) value.is_a?(Hash) ? value : value.to_h end |