Franç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...
Post new comment