Sha256: 0e08d048289ef60bf1557fe3164a59e864c0f3a0784dbdcb4bcfc3152a39b21e

Contents?: true

Size: 641 Bytes

Versions: 7

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_builder'

module EasyTalk
  module Builders
    # Builder class for array properties.
    class RefArrayBuilder < BaseBuilder
      # Initializes a new instance of the ArrayBuilder class.
      sig { params(name: Symbol).void }
      def initialize(name)
        super(name, { type: 'array' }, options, {})
      end

      private

      sig { void }
      # Updates the option types for the array builder.
      def update_option_types
        VALID_OPTIONS[:enum][:type] = T::Array[@inner_type]
        VALID_OPTIONS[:const][:type] = T::Array[@inner_type]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
easy_talk-0.1.6 lib/easy_talk/builders/ref_array_builder.rb
easy_talk-0.1.5 lib/easy_talk/builders/ref_array_builder.rb
easy_talk-0.1.4 lib/easy_talk/builders/ref_array_builder.rb
easy_talk-0.1.3 lib/easy_talk/builders/ref_array_builder.rb
easy_talk-0.1.2 lib/easy_talk/builders/ref_array_builder.rb
easy_talk-0.1.1 lib/easy_talk/builders/ref_array_builder.rb
easy_talk-0.1.0 lib/easy_talk/builders/ref_array_builder.rb