Sha256: 24677151178ec00cf14cded0e04cd0251c706f5230883efaa2b487da670b0c15

Contents?: true

Size: 601 Bytes

Versions: 8

Compression:

Stored size: 601 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

        private

        def create_builtin_or_lookup_type(avro_type_or_name)
          # Find existing Type or build a new instance of a builtin Type using
          # the supplied block
          type_lookup(avro_type_or_name) do |avro_type_name|
            create_builtin_type(avro_type_name, field: field, cache: cache)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
avro-builder-0.16.1 lib/avro/builder/types/type_referencer.rb
avro-builder-0.16.0 lib/avro/builder/types/type_referencer.rb
avro-builder-0.15.0 lib/avro/builder/types/type_referencer.rb
avro-builder-0.15.0.rc0 lib/avro/builder/types/type_referencer.rb
avro-builder-0.14.1 lib/avro/builder/types/type_referencer.rb
avro-builder-0.14.0 lib/avro/builder/types/type_referencer.rb
avro-builder-0.13.0 lib/avro/builder/types/type_referencer.rb
avro-builder-0.12.0 lib/avro/builder/types/type_referencer.rb