summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-18 01:21:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-18 01:21:57 +0000
commit6a69ab937c7e6584d311cd444615cc1cd5b5499b (patch)
tree953a08ca16bd00d7c1b162eb1ef28d3ba1986542
parent4a9705d6e3384342a3ee649bfdbd93062140b5fd (diff)
extension.rdoc: RB_{INTEGER,FLOAT}_TYPE_P [ci skip]
* doc/extension.rdoc, doc/extension.rdoc (Checking Data Types): [DOC] mention RB_INTEGER_TYPE_P and RB_FLOAT_TYPE_P. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--doc/extension.ja.rdoc2
-rw-r--r--doc/extension.rdoc8
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/extension.ja.rdoc b/doc/extension.ja.rdoc
index d89fbd20035..6b3876e9c8b 100644
--- a/doc/extension.ja.rdoc
+++ b/doc/extension.ja.rdoc
@@ -1227,6 +1227,8 @@ Data_Get_Struct(data, type, sval) ::
TYPE(value)
FIXNUM_P(value)
NIL_P(value)
+ RB_INTEGER_TYPE_P(value)
+ RB_FLOAT_TYPE_P(value)
void Check_Type(VALUE value, int type)
SafeStringValue(value)
diff --git a/doc/extension.rdoc b/doc/extension.rdoc
index c2aff57ffce..1e157f824ad 100644
--- a/doc/extension.rdoc
+++ b/doc/extension.rdoc
@@ -1161,6 +1161,14 @@ NIL_P(value) ::
Is +value+ nil?
+RB_INTEGER_TYPE_P(value) ::
+
+ Is +value+ an Integer?
+
+RB_FLOAT_TYPE_P(value) ::
+
+ Is +value+ a Float?
+
void Check_Type(VALUE value, int type) ::
Ensures +value+ is of the given internal +type+ or raises a TypeError