mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Symbol just represents a name
This commit is contained in:
parent
3b3b4a44e5
commit
d2003a6d39
1 changed files with 2 additions and 2 deletions
4
string.c
4
string.c
|
@ -10592,8 +10592,8 @@ rb_str_unicode_normalized_p(int argc, VALUE *argv, VALUE str)
|
|||
/**********************************************************************
|
||||
* Document-class: Symbol
|
||||
*
|
||||
* Symbol objects represent names and some strings inside the Ruby
|
||||
* interpreter. They are generated using the <code>:name</code> and
|
||||
* Symbol objects represent names inside the Ruby interpreter. They
|
||||
* are generated using the <code>:name</code> and
|
||||
* <code>:"string"</code> literals syntax, and by the various
|
||||
* <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
|
||||
|
|
Loading…
Add table
Reference in a new issue