Symbol just represents a name
This commit is contained in:
parent
3b3b4a44e5
commit
d2003a6d39
4
string.c
4
string.c
@ -10592,8 +10592,8 @@ rb_str_unicode_normalized_p(int argc, VALUE *argv, VALUE str)
|
|||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Document-class: Symbol
|
* Document-class: Symbol
|
||||||
*
|
*
|
||||||
* Symbol objects represent names and some strings inside the Ruby
|
* Symbol objects represent names inside the Ruby interpreter. They
|
||||||
* interpreter. They are generated using the <code>:name</code> and
|
* are generated using the <code>:name</code> and
|
||||||
* <code>:"string"</code> literals syntax, and by the various
|
* <code>:"string"</code> literals syntax, and by the various
|
||||||
* <code>to_sym</code> methods. The same Symbol object will be
|
* <code>to_sym</code> methods. The same Symbol object will be
|
||||||
* created for a given name or string for the duration of a program's
|
* created for a given name or string for the duration of a program's
|
||||||
|
Loading…
x
Reference in New Issue
Block a user