# File lib/json-schema/attributes/type.rb, line 73
      def self.type_of_data(data)
        type, _ = TYPE_CLASS_MAPPINGS.map { |k,v| [k,v] }.sort_by { |(_, v)|
          -Array(v).map { |klass| klass.ancestors.size }.max
        }.find { |(_, v)|
          Array(v).any? { |klass| data.kind_of?(klass) }
        }
        type
      end