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
This commit is contained in:
parent
4a9705d6e3
commit
6a69ab937c
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user