to_sym()
public
In general, to_sym returns the Symbol corresponding to an object. As sym
is already a symbol, self is returned in this case.
Show source
/*
* call-seq:
* sym.to_sym => sym
*
* In general, <code>to_sym</code> returns the <code>Symbol</code> corresponding
* to an object. As <i>sym</i> is already a symbol, <code>self</code> is returned
* in this case.
*/
static VALUE
sym_to_sym(sym)
VALUE sym;
{
return sym;
}