summaryrefslogtreecommitdiff
path: root/lib/complex.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-23 06:31:29 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-23 06:31:29 +0000
commit1de4203c5150088bd795d04e0f6fc4dd75ac00f3 (patch)
tree08da4575f4d1164918e6a74e503d5de9a9b64b51 /lib/complex.rb
parentc6c5771e50ecc68e6e7f20fa051a7d1b9ba8f96a (diff)
* lib/cgi.rb (CGI::QueryExtension::[]): always return Value
object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/complex.rb')
-rw-r--r--lib/complex.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/complex.rb b/lib/complex.rb
index dda2ad2006..90916d125e 100644
--- a/lib/complex.rb
+++ b/lib/complex.rb
@@ -13,7 +13,6 @@
#
# Complex numbers can be created in the following manner:
# - <tt>Complex(a, b)</tt>
-# - <tt>Complex.new(a, b)</tt>
# - <tt>Complex.polar(radius, theta)</tt>
#
# Additionally, note the following:
@@ -66,7 +65,8 @@ class Complex < Numeric
def Complex.polar(r, theta)
Complex(r*Math.cos(theta), r*Math.sin(theta))
end
-
+
+ private_class_method :new
#
# Creates a +Complex+ number <tt>a</tt>+<tt>b</tt><i>i</i>.
#