# File lib/ffi/struct.rb, line 142 def field_class_from(type) field_class = native_field_class_from(type) || callback_field_class_from(type) || array_field_class_from(type) || struct_field_class_from(type) field_class or raise ArgumentError, "Unknown type: #{type}" end