Sha256: 0dbfb7f995b9cf7fe943f4f1dc05a2d5da058ee9bb74640cdcc149fb51851150

Contents?: true

Size: 673 Bytes

Versions: 1

Compression:

Stored size: 673 Bytes

Contents

rb_type(1)  -- return the integer value of a ruby type
======================================================

## SYNOPSIS

`static inline int rb_type(VALUE obj);`

## 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.

## EXAMPLES

  VALUE greeting = rb_str_new2("Hello amigo!");

  if( rb_type(greeting) == T_STRING ) {

    printf("Greeting is a ruby String");

  }

## AUTHOR
  John Faucett

## 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.ronn