Sha256: 5e1973d200eb35d408d926eda2933439aa45a7a83dadafd7e8b88bf849d9b9f8

Contents?: true

Size: 806 Bytes

Versions: 1

Compression:

Stored size: 806 Bytes

Contents

.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "RB_TYPE" "1" "February 2014" "" ""
.
.SH "NAME"
\fBrb_type\fR \- return the integer value of a ruby type
.
.SH "SYNOPSIS"
\fBstatic inline int rb_type(VALUE obj);\fR
.
.SH "DESCRIPTION"
The rb_type function takes a ruby object as its argument and returns the integer value of its internal representation in ruby\. The integer value is one of the the ruby type definitions, i\.e\. T_STRING for String objects, T_NIL for NilClass objects, T_SYMBOL for Symbol objects, etc\.
.
.SH "EXAMPLES"
VALUE greeting = rb_str_new2("Hello amigo!");
.
.P
if( rb_type(greeting) == T_STRING ) {
.
.IP "" 4
.
.nf

printf("Greeting is a ruby String");
.
.fi
.
.IP "" 0
.
.P
}
.
.SH "AUTHOR"
John Faucett
.
.SH "SEE ALSO"
ruby_value_type(3)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capiru-0.0.1 reference/en/rb_type.1