Skip to content

Commit

Permalink
Remove unneeded @shim tags
Browse files Browse the repository at this point in the history
  • Loading branch information
amomchilov committed Jan 4, 2024
1 parent 9a73c4d commit ef32a19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
},
"activesupport": {
"requires": [
"active_support",
"active_support/core_ext/array",
"active_support/all",
"active_support/test_case"
]
},
Expand Down
8 changes: 4 additions & 4 deletions rbi/annotations/activesupport.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -261,21 +261,21 @@ class Time
end

class Symbol
# @shim: alias for `#start_with?`
# alias for `#start_with?`
sig { params(string_or_regexp: T.any(String, Regexp)).returns(T::Boolean) }
def starts_with?(*string_or_regexp); end

# @shim: alias for `#end_with?`
# alias for `#end_with?`
sig { params(string_or_regexp: T.any(String, Regexp)).returns(T::Boolean) }
def ends_with?(*string_or_regexp); end
end

class String
# @shim: alias for `#start_with?`
# alias for `#start_with?`
sig { params(string_or_regexp: T.any(String, Regexp)).returns(T::Boolean) }
def starts_with?(*string_or_regexp); end

# @shim: alias for `#end_with?`
# alias for `#end_with?`
sig { params(string_or_regexp: T.any(String, Regexp)).returns(T::Boolean) }
def ends_with?(*string_or_regexp); end
end

0 comments on commit ef32a19

Please sign in to comment.