summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-14 11:17:37 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-14 11:17:37 +0900
commit5d45afdbbf058d82ced0b12bf9e4b2978db9f4e0 (patch)
treec5d960afaa2ef7699a009787102a82d4da665118 /symbol.c
parent3728f83b2d8e9d4705f835a572e6886a74562e8a (diff)
downloadruby-5d45afdbbf058d82ced0b12bf9e4b2978db9f4e0.tar.gz
[DOC] Move the documentations of moved Symbol methods
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index 5ce95f5b07..f5e876c7d7 100644
--- a/symbol.c
+++ b/symbol.c
@@ -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)