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