Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
In general, to_sym returns the Symbol corresponding to an object. As sym is already a symbol, self is returned in this case.
 
               static VALUE
sym_to_sym(VALUE sym)
{
    return sym;
}
            

Was this page useful?