diff options
Diffstat (limited to 'complex.c')
-rw-r--r-- | complex.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -394,7 +394,7 @@ static VALUE nucomp_s_convert(int argc, VALUE *argv, VALUE klass); /* * call-seq: - * Complex(x[, y]) -> numeric + * Complex(x[, y], exception: false) -> numeric * * Returns x+i*y; * @@ -403,6 +403,9 @@ static VALUE nucomp_s_convert(int argc, VALUE *argv, VALUE klass); * Complex(nil) #=> TypeError * Complex(1, nil) #=> TypeError * + * Complex(1, nil, exception: false) # => nil + * Complex('1+2', exception: false) # => nil + * * Syntax of string form: * * string form = extra spaces , complex , extra spaces ; |