Sha256: f372b92ff09d77120e55f48e396a808c1fe30c4a640ba264f6ba9e4d8a1f6f65

Contents?: true

Size: 408 Bytes

Versions: 212

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true
# typed: true

# Use as a mixin with extend (`extend T::Generic`).
module T::Generic
  include T::Helpers
  include Kernel

  ### Class/Module Helpers ###

  def [](*types)
    self
  end

  def type_member(variance=:invariant, &blk)
    T::Types::TypeMember.new(variance)
  end

  def type_template(variance=:invariant, &blk)
    T::Types::TypeTemplate.new(variance)
  end
end

Version data entries

212 entries across 212 versions & 2 rubygems

Version Path
sorbet-runtime-0.5.10751 lib/types/generic.rb
sorbet-runtime-0.5.10746 lib/types/generic.rb
sorbet-runtime-0.5.10741 lib/types/generic.rb
sorbet-runtime-0.5.10736 lib/types/generic.rb
sorbet-runtime-0.5.10735 lib/types/generic.rb
sorbet-runtime-0.5.10731 lib/types/generic.rb
sorbet-runtime-0.5.10722 lib/types/generic.rb
sorbet-runtime-0.5.10712 lib/types/generic.rb
sorbet-runtime-0.5.10710 lib/types/generic.rb
sorbet-runtime-0.5.10707 lib/types/generic.rb
sorbet-runtime-0.5.10705 lib/types/generic.rb
sorbet-runtime-0.5.10696 lib/types/generic.rb
sorbet-runtime-0.5.10693 lib/types/generic.rb
sorbet-runtime-0.5.10690 lib/types/generic.rb
sorbet-runtime-0.5.10689 lib/types/generic.rb
sorbet-runtime-0.5.10687 lib/types/generic.rb
sorbet-runtime-0.5.10685 lib/types/generic.rb
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/sorbet-runtime-0.5.10648/lib/types/generic.rb
sorbet-runtime-0.5.10679 lib/types/generic.rb
sorbet-runtime-0.5.10676 lib/types/generic.rb