ruby / gem_rbs_collection

A collection of RBS for gems.
MIT License
247 stars 101 forks source link

Object#in? and Object#presence_in #613

Closed hibariya closed 5 days ago

hibariya commented 5 days ago
- def in?: (untyped another_object) -> untyped
+ def in?: (::ActiveSupport::_IncludeP another_object) -> bool

- def presence_in: (untyped another_object) -> untyped
+ def presence_in: (::ActiveSupport::_IncludeP another_object) -> (self | nil)

- def self.in?: (untyped another_object) -> untyped
+ def self.in?: (::ActiveSupport::_IncludeP another_object) -> bool

- def self.presence_in: (untyped another_object) -> untyped
+ def self.presence_in: (::ActiveSupport::_IncludeP another_object) -> (self | nil)
github-actions[bot] commented 5 days ago

@hibariya Thanks for your contribution!

Please follow the instructions below for each change. See also: https://github.com/ruby/gem_rbs_collection/blob/main/docs/CONTRIBUTING.md

Available commands

You can use the following commands by commenting on this PR.


activesupport

You changed RBS files for an existing gem. You can merge this PR yourself because you are a reviewer of this gem. Just comment /merge to merge this PR.

You can also request a review from other reviewers if you want.

hibariya commented 5 days ago

/merge