lib/surrealist/value_assigner.rb
# Assists in recursively generating schema for a record while preventing infinite self-referencing
#
# @param [Object] instance the instance of the object which methods from the schema are called on.
# @param [Object] value a value that has to be type-checked.
#
# @return [Hash] schema
Assists in recursively generating schema for a record while preventing infinite self-referencing
Assists in recursively generating schema for a record while preventing infinite self - referencing
def assign_nested_record(instance, value)
        return if @skip_set.include?(value.class)
        with_skip_set(instance.class) { value.build_schema }
      end
def assign_nested_record ( instance , value ) return if @skip_set . include? ( value . class ) with_skip_set ( instance . class ) { value . build_schema } end
Assists in recursively generating schema for a record while preventing infinite self-referencing
Assists in recursively generating schema for a record while preventing infinite self - referencing
None
Hash
instance
<not_specific>
value
<not_specific>
<not_specific>
value a value that has to be type-checked.
value a value that has to be type - checked .