Sha256: fec98999c820263980477095a65849ff23bb4567319404dee83bfce2a1477eea

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 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_name)
          if builtin_type?(avro_type_name)
            create_builtin_type(avro_type_name, field: field, cache: cache)
          else
            cache.lookup_named_type(avro_type_name)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
avro-builder-0.10.0 lib/avro/builder/types/type_referencer.rb
avro-builder-0.9.0 lib/avro/builder/types/type_referencer.rb
avro-builder-0.8.0 lib/avro/builder/types/type_referencer.rb
avro-builder-0.7.0 lib/avro/builder/types/type_referencer.rb