-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
27 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# typed: strict | ||
|
||
module Enumerable | ||
requires_ancestor { Object } | ||
|
||
sig { | ||
type_parameters(:key).params( | ||
block: T.nilable(T.proc.params(o: Enumerable::Elem).returns(T.type_parameter(:key))), | ||
).returns(T::Hash[T.type_parameter(:key), Enumerable::Elem]) | ||
} | ||
def index_by(&block); end | ||
end | ||
|
||
class Hash | ||
sig { returns(T::Hash[Hash::K, Hash::V]) } | ||
def compact_blank; end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
260 changes: 0 additions & 260 deletions
260
...or/bundle/ruby/3.1.0/gems/activesupport-6.1.7.6/lib/active_support/core_ext/enumerable.rb
This file was deleted.
Oops, something went wrong.