Instance method
# intern
In general, to_sym returns the Symbol corresponding to an object. As sym is already a symbol, self is returned in this case.
How to use
Quick guide
Official content
Official how?
I scraped all this data from the official documentation. I created this site to make it easier for beginners and more pleasant for professionals to use Ruby.
Georgie boy
Creator of ruby-docs.org
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?
Leave your feedback
Please hit 'submit' to confirm your feedback.
Leave your feedback
Please hit 'submit' to confirm your feedback.