Sha256: 4a7892c8a5b6559c817612da70ed6058f976db5772de3a17238273044518da40

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Tapioca
  module RBIHelper
    extend T::Sig

    sig { params(sig_string: String).returns(String) }
    def sanitize_signature_types(sig_string)
      sig_string
        .gsub(".returns(<VOID>)", ".void")
        .gsub("<VOID>", "void")
        .gsub("<NOT-TYPED>", "T.untyped")
        .gsub(".params()", "")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tapioca-0.7.0 lib/tapioca/helpers/rbi_helper.rb