RubyFlow The Ruby and Rails community linklog

Fun with keyword arguments, hashes, and splats

Can you use old-style => hash syntax with keyword arguments, so you don’t have to change all your old code? How do you mix hash arguments and keyword arguments together? And is there a way to convert keyword arguments to a hash, the same way *args converts regular arguments to an array?

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in