Sha256: 032e1ca05ec073df8b0a1c5235b3c71baa6c8834f598b0a4638d6c36417b16c5

Contents?: true

Size: 416 Bytes

Versions: 5

Compression:

Stored size: 416 Bytes

Contents

module Avro
  module Builder
    module Types

      # This concern is used by Types that can be configured via the DSL.
      # Only attributes that can be set via options are configured here.
      module ConfigurableType
        def configure_options(options = {})
          options.each do |key, value|
            send("#{key}=", value) if dsl_option?(key)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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