What is the equivalent of <lang>'s <feature> in ruby?

Is there a website that documents which method in ruby is equivalent to
which function in PHP? Or any other programming language? I could swear
something like this has been posted to this list before, but I couldn’t
find any trace of it.

On Apr 14, 5:51 am, Daniel DeLorme [email protected] wrote:

Is there a website that documents which method in ruby is equivalent to
which function in PHP? Or any other programming language? I could swear
something like this has been posted to this list before, but I couldn’t
find any trace of it.

A simple function translation will result in PHP written in ruby
syntax. It’s far better to learn idiomatic ruby. ri and irb are your
friends.

Is there a website that documents which method in ruby is equivalent to
which function in PHP? Or any other programming language? I could swear
something like this has been posted to this list before, but I couldn’t
find any trace of it.

There’s this from the official site:
http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/

Covers PHP, C, Java and a few others.

Chris

Give this site a try: http://railsforphp.com/

Javier Alvarez wrote:

Give this site a try: http://railsforphp.com/

Thank you, that’s a nice little website. The function reference is
not exactly extensive, but it’s a very good start. One of the nice
things is that it explains the ruby idioms equivalent to a given
PHP function. So there goes your objection, Mr. Thomas :stuck_out_tongue:

Now if only there was a website like that to assist ruby programmers
trying to code in, say, OCaml.

Daniel

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs