aboutsummaryrefslogtreecommitdiffstats
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
commita191ac36220bba54b1e280ac62f8fa8696d1bb46 (patch)
tree953a08ca16bd00d7c1b162eb1ef28d3ba1986542
parent7ec4533c93adc4838ce53f5119c2702b10c9043f (diff)
downloadruby-a191ac36220bba54b1e280ac62f8fa8696d1bb46.tar.gz
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 d89fbd2..6b3876e 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 c2aff57..1e157f8 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