Sha256: c32d5e86003adc4dc59f0d01eb74e378f6389b8eb6ae355ad5886cc0f0c89ff0
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
require 'avro/builder/type_factory' module Avro module Builder module Types # This concern is used by Types that reference other types. module TypeReferencer include Avro::Builder::TypeFactory def create_builtin_or_lookup_named_type(avro_type_or_name) if avro_type_or_name.is_a?(Avro::Builder::Types::Type) avro_type_or_name elsif builtin_type?(avro_type_or_name) create_builtin_type(avro_type_or_name, field: field, cache: cache) else cache.lookup_named_type(avro_type_or_name) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
avro-builder-0.11.0 | lib/avro/builder/types/type_referencer.rb |