diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-19 21:57:51 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-19 21:57:51 +0000 |
commit | ab7baebb6ddb8ad4b06dfdc0f75fbecba19ca21d (patch) | |
tree | 244dc8ce2dd997ec5ee1671e3b285d3cb44b1d25 /rational.c | |
parent | 63f2557b56ca791e9fee0fdeba4ad5f6aa378fe2 (diff) | |
download | ruby-ab7baebb6ddb8ad4b06dfdc0f75fbecba19ca21d.tar.gz |
* complex.c: edited rdoc.
* rational.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r-- | rational.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rational.c b/rational.c index 98d8be30e4..35f5c40121 100644 --- a/rational.c +++ b/rational.c @@ -1723,6 +1723,12 @@ numeric_numerator(VALUE self) return f_numerator(f_to_r(self)); } +/* + * call-seq: + * num.denominator => integer + * + * Returns the denominator of _num_ as an +Integer+ object. + */ static VALUE numeric_denominator(VALUE self) { @@ -2009,7 +2015,7 @@ string_to_r_strict(VALUE self) /* * call-seq: - * string.to_r => rational + * str.to_r => rational * * Returns a +Rational+ object representing _string_ as a rational number. * Leading and trailing whitespace is ignored. Underscores may be used to |