aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-17 06:01:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-17 06:01:47 +0000
commit932e916b9e340d3ae52bac2eb57567208dc21d4f (patch)
treec1ba22f01a708157a7ceef0725942ebce1f61ef3 /NEWS
parent1fbf1f755218d96447cf1db8441b554aa95d655d (diff)
downloadruby-932e916b9e340d3ae52bac2eb57567208dc21d4f.tar.gz
numeric.c: Numeric#positive? and Numeric#negative?
* numeric.c (num_positive_p, num_negative_p): add methods Numeric#positive? and Numeric#negative?. [ruby-core:69173] [Feature #11151] * numeric.c (flo_positive_p, flo_negative_p): specialiazed functions for Float. * complex.c (Init_Complex): Complex do not have positive? and negative? methods git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b136074ceb..1727572c92 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,11 @@ with all sufficient information, see the ChangeLog file.
* Enumerable#grep_v is added as inverse version of Enumerable#grep.
+* Numeric
+
+ * Numeric#positive? and Numeric#negative? are added, which return
+ true when the receiver is positive and negative respectively.
+
=== Core classes compatibility issues (excluding feature bug fixes)
* Array