module AttributedObject::Strict::InstanceMethods
Public Instance Methods
_attributed_object_on_init_attribute(type_info, value, name:, args:)
click to toggle source
# File lib/attributed_object/strict.rb, line 20 def _attributed_object_on_init_attribute(type_info, value, name:, args:) type_matches = AttributedObjectHelpers::TypeCheck.check(type_info, value) raise TypeError.new(self.class, name, args) if !type_matches return value end