class Morf::Casters::HasMorfer
Public Class Methods
cast(value, attr_name, options = {})
click to toggle source
# File lib/morf/casters/hash_caster.rb, line 2 def self.cast(value, attr_name, options = {}) if value.is_a?(Hash) value else raise Morf::Errors::CastingError, "should be a hash" end end