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

[ruby] handle private_class_method and public_class_method access modifiers #5074

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

AndreiDreyer
Copy link
Contributor

Added handling for private_class_method and public_class_method access modifiers, making the function def that follows them have either PRIVATE or PUBLIC modifiers.

TODO:
handle multiple args: It's possible to call private_class_method with a list of symbols representing function names. All the functions matching these symbols would then also have a PRIVATE access modifier.

Resolves #5061

@AndreiDreyer AndreiDreyer added bug Something isn't working ruby Relates to rubysrc2cpg labels Nov 7, 2024
@AndreiDreyer AndreiDreyer self-assigned this Nov 7, 2024
@AndreiDreyer AndreiDreyer merged commit 7f0140c into master Nov 7, 2024
5 checks passed
@max-leuthaeuser max-leuthaeuser deleted the andrei/ruby/match-error-mastodon branch November 12, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ruby Relates to rubysrc2cpg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [ruby] Match Error on mastodon Project
2 participants