Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using [self: instance] annotation in sinatra gem #569

Merged
merged 1 commit into from
May 28, 2024

Conversation

euglena1215
Copy link
Contributor

When a method is called within a block of HTTP methods such as get, post in the sinatra gem, it should have been treated as calling an instance method, but was evaluated as a singleton method. By adding [self: instance] to the method block of each HTTP method, processing within the block is now treated as processing in the instance.

When a method is called within a block of HTTP methods such as `get`, `post` in the sinatra gem,
it should have been treated as calling an instance method, but was evaluated as a singleton method.
By adding `[self: instance]` to the method block of each HTTP method,
processing within the block is now treated as processing in the instance.
Copy link

@euglena1215 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.

  • /merge: Merge this PR if CI passes

sinatra-contrib

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.


sinatra

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.

@euglena1215
Copy link
Contributor Author

/merge

@github-actions github-actions bot merged commit 40bc6f3 into ruby:main May 28, 2024
4 checks passed
@euglena1215 euglena1215 deleted the sinatra-use-self-instance branch May 28, 2024 12:14
euglena1215 added a commit to euglena1215/isucon13-rbs that referenced this pull request May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant