blogccasion

Generate Ruby from your WADL REST API Descriptions with REST Describe & Compile

Generate Ruby from your WADL REST API Descriptions with REST Describe & Compile

I have been digging a bit into Ruby today, and I must say that probably I will not really make friends with this hip language. Honestly, is it necessary to do stuff like this:

puts "1, 2, " + 3.to_s
Mind the little to_s that has to convert the Fixnum into a String before printing. I know, everything is an object, but come on, a scripting language should be somewhat more forgiving. At least this is what I think.

Anyway, the latest version 0.2.1 of REST Describe & Compile comes with Ruby support. As you can see from the introduction, I am not much a Ruby guy (yet), so any suggestions to improve the quality of the auto-generated code are highly appreciated.

You can download the source code under a BSD license, and as always the latest version is available directly from my web space. Auch auf deutsch. You can access older versions by hacking the URL: http://tomayac.com/rest-describe/0.X.Y/RestDescribe.html, where X and Y stand for the old version numbers.