ruby-changes:42971
From: nobu <ko1@a...>
Date: Wed, 18 May 2016 10:22:01 +0900 (JST)
Subject: [ruby-changes:42971] nobu:r55045 (trunk): extension.rdoc: RB_{INTEGER, FLOAT}_TYPE_P [ci skip]
nobu 2016-05-18 10:21:57 +0900 (Wed, 18 May 2016) New Revision: 55045 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55045 Log: 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. Modified files: trunk/doc/extension.ja.rdoc trunk/doc/extension.rdoc Index: doc/extension.rdoc =================================================================== --- doc/extension.rdoc (revision 55044) +++ doc/extension.rdoc (revision 55045) @@ -1161,6 +1161,14 @@ NIL_P(value) :: https://github.com/ruby/ruby/blob/trunk/doc/extension.rdoc#L1161 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 Index: doc/extension.ja.rdoc =================================================================== --- doc/extension.ja.rdoc (revision 55044) +++ doc/extension.ja.rdoc (revision 55045) @@ -1227,6 +1227,8 @@ Data_Get_Struct(data, type, sval) :: https://github.com/ruby/ruby/blob/trunk/doc/extension.ja.rdoc#L1227 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/