Method: LedgerSync::Type::ReferenceMany#valid_without_casting?

Defined in:
lib/ledger_sync/type/reference_many.rb

#valid_without_casting?(value:) ⇒ Boolean

Returns:



26
27
28
29
30
# File 'lib/ledger_sync/type/reference_many.rb', line 26

def valid_without_casting?(value:)
  return false unless value.is_a?(Array)

  value.reject { |e| e.is_a?(resource_class) }.empty?
end