Sha256: 9d6c8b7218ce2a5db0d5401be1581aba18cd490da6d91fd07184cc9d31f97bdb

Contents?: true

Size: 359 Bytes

Versions: 47

Compression:

Stored size: 359 Bytes

Contents

# typed: true
# frozen_string_literal: true

module T
  module Types
    class FixedHash
      def name
        entries = @types.map do |(k, v)|
          if Symbol === k && ":#{k}" == k.inspect
            "#{k}: #{v}"
          else
            "#{k.inspect} => #{v}"
          end
        end

        "{#{entries.join(", ")}}"
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
tapioca-0.11.14 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.13 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.12 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.11 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.10 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.9 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.8 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.7 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.6 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.5 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.4 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.3 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.2 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/tapioca-0.11.1/lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.1 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.11.0 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.10.5 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.10.4 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.10.3 lib/tapioca/sorbet_ext/fixed_hash_patch.rb
tapioca-0.10.2 lib/tapioca/sorbet_ext/fixed_hash_patch.rb