Sha256: a5f6fb5454fbf2303d361115c13ddd8d0b2c25fc87b33aa6ccf65d819752387d

Contents?: true

Size: 1.19 KB

Versions: 51

Compression:

Stored size: 1.19 KB

Contents

# This file is autogenerated. Do not edit it by hand. Regenerate it with:
#   srb rbi sorbet-typed
#
# If you would like to make changes to this file, great! Please upstream any changes you make here:
#
#   https://github.com/sorbet/sorbet-typed/edit/master/lib/activesupport/>=6/activesupport.rbi
#
# typed: strong

class Array
  sig { params(elements: T.untyped).returns(T::Array[T.untyped]) }
  def excluding(*elements); end

  sig do
    params(
      blk: T.nilable(T.proc.params(arg0: Elem).returns(T::Boolean))
    ).returns(T.any(T::Array[Elem], T::Enumerable[Elem]))
  end
  def extract!(&blk); end

  sig { params(elements: T.untyped).returns(T::Array[T.untyped]) }
  def including(*elements); end
end

module Enumerable
  # https://github.com/rails/rails/blob/v6.0.0/activesupport/lib/active_support/core_ext/enumerable.rb#L70..L82
  # the case where a block isn't given isn't handled - that seems like an unlikely case
  sig do
    type_parameters(:key).params(
      default: T.untyped,
      block: T.proc.params(o: Enumerable::Elem).returns(T.type_parameter(:key))
    ).returns(
      T::Hash[Enumerable::Elem, T.type_parameter(:key)]
    )
  end
  def index_with(default = T.unsafe(nil), &block); end
end

Version data entries

51 entries across 51 versions & 6 rubygems

Version Path
mangadex-5.3.3.2 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
mangadex-5.3.3.1 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
mangadex-5.3.3 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
mangadex-5.3.2 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
mangadex-5.3.1.3 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
mangadex-5.3.1.2 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
mangadex-5.3.1.1 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
mangadex-5.3.1 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
mangadex-5.3.0 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
wt_activerecord_index_spy-0.5.0 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
ipt-2.1.0 sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi