This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle keyword arguments for Ruby 2.6
- Loading branch information
97c1ccf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked it! It is clear that it is a thing related to the Ruby version
97c1ccf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but you repeat the whole definition with another parameter list and slightly different body. We could combine your solution with
args.empty? && RUBY_VERSION.start_with?("2.6")
though, but it's not needed.