diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-14 11:17:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-14 11:17:37 +0900 |
commit | 5d45afdbbf058d82ced0b12bf9e4b2978db9f4e0 (patch) | |
tree | c5d960afaa2ef7699a009787102a82d4da665118 /symbol.c | |
parent | 3728f83b2d8e9d4705f835a572e6886a74562e8a (diff) |
[DOC] Move the documentations of moved Symbol methods
Diffstat (limited to 'symbol.c')
-rw-r--r-- | symbol.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -919,6 +919,17 @@ rb_id2sym(ID x) return get_id_entry(x, ID_ENTRY_SYM); } +/* + * call-seq: + * name -> string + * + * Returns a frozen string representation of +self+ (not including the leading colon): + * + * :foo.name # => "foo" + * :foo.name.frozen? # => true + * + * Related: Symbol#to_s, Symbol#inspect. + */ VALUE rb_sym2str(VALUE sym) |