summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2021-12-03 07:12:28 -0600
committerGitHub <noreply@github.com>2021-12-03 07:12:28 -0600
commit28fb6d6b9e06a632f96244a635a045622a6be276 (patch)
tree1c96616dc764d2b67c83fe9443b7f5ae1f8c9ea8 /complex.c
parent324d57df0b28982590609d7ae080f82074a82a5c (diff)
downloadruby-28fb6d6b9e06a632f96244a635a045622a6be276.tar.gz
Adding links to literals and Kernel (#5192)
* Adding links to literals and Kernel
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/complex.c b/complex.c
index 3b4b05a2bb..a3dda4d0e1 100644
--- a/complex.c
+++ b/complex.c
@@ -2267,6 +2267,14 @@ float_arg(VALUE self)
* and i is imaginary unit. Real a equals complex a+0i
* mathematically.
*
+ * You can create a \Complex object explicitly with:
+ *
+ * - A {complex literal}[doc/syntax/literals_rdoc.html#label-Complex+Literals].
+ *
+ * You can convert certain objects to \Complex objects with:
+ *
+ * - \Method {Complex}[Kernel.html#method-i-Complex].
+ *
* Complex object can be created as literal, and also by using
* Kernel#Complex, Complex::rect, Complex::polar or to_c method.
*