diff --git a/rbi/annotations/activesupport.rbi b/rbi/annotations/activesupport.rbi index a422b3c7..91ad62d0 100644 --- a/rbi/annotations/activesupport.rbi +++ b/rbi/annotations/activesupport.rbi @@ -259,3 +259,23 @@ class Time sig { returns(TrueClass) } def present?; end end + +class Symbol + # @shim: alias for `#start_with?` + sig { params(string_or_regexp).returns(T::Boolean) } + def starts_with?(*string_or_regexp) + + # @shim: alias for `#end_with?` + sig { params(string_or_regexp).returns(T::Boolean) } + def ends_with?(*string_or_regexp); end +end + +class String + # @shim: alias for `#start_with?` + sig { params(string_or_regexp).returns(T::Boolean) } + def starts_with?(*string_or_regexp) + + # @shim: alias for `#end_with?` + sig { params(string_or_regexp).returns(T::Boolean) } + def ends_with?(*string_or_regexp); end +end