class SorbetRails::ModelColumnUtils::ColumnType
Public Instance Methods
to_s()
click to toggle source
# File lib/sorbet-rails/model_column_utils.rb, line 16 def to_s type = base_type.to_s # A nullable array column should be T.nilable(T::Array[column_type]) not T::Array[T.nilable(column_type)] type = "T::Array[#{type}]" if array_type type = "T.nilable(#{type})" if nilable type end