Make any Ruby object Rack-friendly with Rackable

Courtesy Ruby Inside  Mon, 07/20/2009 - 14:38

rackFrançois Vaux has recently published a Ruby module called Rackable which allows you to make any Ruby object Rack -friendly, providing it with a REST-like interface.

What does this mean? Well, a Rack application is essentially a Ruby object that responds to call() .

Rackable just gives your object a call method which uses the Rack environment to dispatch to a method.

So, you just need to include Rackable in your class and...


 

More related items

Riot: for fast, expressive and focused unit tests
Riot is a new Ruby test framework by Justin Knowlden that focuses on faster testing. Justin was frustrated with his slow running test suites, despite employing techniques such as using...

Turbocharge Your Ruby Testing with Parallel Specs
In Make Your Test Suite UNCOMFORTABLY FAST! (called "the best blog post ever written" by one commenter) Jason Morrison of Thoughtbot demonstrates how to use Michael Grosser's Parallel Specs...

“Micro” Optimizations That Matter - Brandon Savage
Every few weeks, someone publishes an article talking about how it’s faster to use single quotes rather than double quotes and how you should use echo() instead of print(). Most of these...

HP W1907 19-inch Widescreen Flat Panel LCD Monitor
With a resolution of 1440 x 900 and wide workspace, you can watch videos, edit photos, surf the net or play games with the HP W1907. Its wide aspect ratio and fast response time bring work...

NZXT ACC-NT-CRYO-S 120MM Aluminum Notebook Cooler...
CRYO LX SILVER - ALUMINUM COOLER FOR POWER NOTEBOOKS


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com