lib/surrealist/value_assigner.rb
# Assists in recursively generating schema for records 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 [Array] of schemas
Assists in recursively generating schema for records while preventing infinite self-referencing
Assists in recursively generating schema for records while preventing infinite self - referencing
def assign_nested_collection(instance, value)
        return if @skip_set.include?(value.first.class)
        with_skip_set(instance.class) { Surrealist.surrealize_collection(value, raw: true) }
      end
def assign_nested_collection ( instance , value ) return if @skip_set . include? ( value . first . class ) with_skip_set ( instance . class ) { Surrealist . surrealize_collection ( value , raw : true ) } end
Assists in recursively generating schema for records while preventing infinite self-referencing
Assists in recursively generating schema for records while preventing infinite self - referencing
None
Array
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 .