RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Clean up your API using instance_eval

If you are writing an API (e.g. for a gem) then making use of Ruby’s intance_eval method can give your API a much more DSL-like syntax. Check out my quick into here: http://itshouldbeuseful.wordpress.com/2011/08/12/use-instance_eval-to-clean-up-your-api

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