class Attributary::Types::HashType
Public Class Methods
cast_to(value)
click to toggle source
# File lib/attributary/types/hash_type.rb, line 4 def self.cast_to(value) value.is_a?(Hash) ? value : value.to_h end