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

[FIX] 3.2.2 compatibility by accepting positional and keywords args #5

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

araluce
Copy link
Contributor

@araluce araluce commented Sep 18, 2023

This closes #4

Comment on lines +8 to +14
instance = if args.length > 0 && kwargs.length > 0
new(*args, **kwargs)
elsif kwargs.length > 0
new(**kwargs)
else
new(*args)
end
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a fancy code, but this is mainly the idea.

@markets
Copy link
Owner

markets commented Oct 11, 2023

Thank you so much @araluce!

@markets markets merged commit 31a0017 into markets:master Oct 11, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ruby 3.2.2 compatibility
2 participants