A portion of Ruby's keyword arguments handling reduced to a very large ternary. This just decides whether to dup the incoming keywords hash, whether to set old-style keywords flags, and what to use for actually setting local variables. It's so easy!

gist.github.com/headius/d01585

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/headius/statuses/115975226342748808 on your instance and quote it. (Note that quoting is not supported in Mastodon.)