Differently hackish keyword arguments for Ruby

maca’s arguments - keyword arguments support for Ruby, now. Wickedly clever hack that does reflection on Ruby 1.9 and uses ParseTree for Ruby 1.8. Simpler than I thought it’d be, I wish I’d thought of that.

Caveat: I haven’t tried it yet. It might punch kittens. In fact, if you think parts of Ruby are “too magical”, this definitely punches kittens.

This entry was posted in Code, Curated and tagged . Bookmark the permalink.

One Response to Differently hackish keyword arguments for Ruby

  1. Macario says:

    Hi, thanks for your post.

    I am the author of the gem, in the last version there has been a number of fixes and I think is a very plausible alternative to traditional options hash besides don’t we all like to punch kittens ;)

    btw, I enjoyed your Sinatra screencast.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Comments will be sent to the moderation queue.