Sha256: 5b83fe71677e4ac82bfd2d651c675d1b2fc4c944db05aa866fe77e33b4baa206

Contents?: true

Size: 269 Bytes

Versions: 10

Compression:

Stored size: 269 Bytes

Contents

# typed: true
# frozen_string_literal: true

module T
  module Types
    class Simple
      module NamePatch
        def name
          @name ||= Module.instance_method(:name).bind(@raw_type).call.freeze
        end
      end

      prepend NamePatch
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tapioca-0.4.27 lib/tapioca/sorbet_ext/name_patch.rb
tapioca-0.4.26 lib/tapioca/sorbet_ext/name_patch.rb
tapioca-0.4.25 lib/tapioca/sorbet_ext/name_patch.rb
tapioca-0.4.24 lib/tapioca/sorbet_ext/name_patch.rb
tapioca-0.4.23 lib/tapioca/sorbet_ext/name_patch.rb
tapioca-0.4.22 lib/tapioca/sorbet_ext/name_patch.rb
tapioca-0.4.21 lib/tapioca/sorbet_ext/name_patch.rb
tapioca-0.4.20 lib/tapioca/sorbet_ext/name_patch.rb
tapioca-0.4.19 lib/tapioca/sorbet_ext/name_patch.rb
tapioca-0.4.18 lib/tapioca/sorbet_ext/name_patch.rb