Syntax conversion between C++ or Java to Ruby

Can anyone recommend a good web site that shows Ruby equivalents of
common C++ or Java constructs. For example

  1. while, for loops
  2. private, protected, public

A table would be good…

Any good sites to migrate from the Java language (not web framework)
to the Ruby language (not Rails)

Thanks!
Chirag

chirag wrote:

Thanks!
Chirag

Hi Chirag,

It’s not a table like you ask but what I found useful was to read Chris
Pine’s “How to Program” that teaches you programming with Ruby. I have
used C for nearly 12 years, so some of the book was rather simple, but
it gave me (quite quickly) the exact introductory class that I needed.
It took me through all the basic concepts like what you ask in a thin
concise manner.

Cheers,
Mohit.
6/21/2007 | 10:29 AM.

On Jun 20, 2007, at 8:57 PM, chirag wrote:

Can anyone recommend a good web site that shows Ruby equivalents of
common C++ or Java constructs. For example

http://www.ruby-doc.org/docs/ProgrammingRuby/

-faisal