module Avro::Builder::Types::TopLevel

This concern is used by types that can be defined at the top-level, i.e. outside a field.

Attributes

namespace[W]

Namespace is settable as a top-level option

Public Class Methods

included(base) click to toggle source
# File lib/avro/builder/types/top_level.rb, line 11
def self.included(base)
  base.add_option_name :_name
end

Private Instance Methods

_name=(value) click to toggle source

Provide a way to set the name internally for a top-level type.

# File lib/avro/builder/types/top_level.rb, line 16
def _name=(value)
  @name = value
end