On Sun, 10 Mar 2013 04:41:32 +0100, Cliff Rosson <cliff.rosson / gmail.com> wrote:

> Also based on previous posts. What is the difference between a symbol and an ID?

A symbol is an object of the Ruby class Symbol. It is essentially an integer that also has a textual human-readable representation - sort of like a magic numeric bconstant in other languages.

An ID is an internal representation for a method/class name used in the C Ruby implementation. Under-the-hood it uses the same machinery as a Symbol, and thus can be converted to and from it easily.


-- 
Matma Rex