Class: Fixnum

Inherits:
Object show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#data_typeObject



94
95
96
97
98
# File 'ext/barracuda.c', line 94

static VALUE
fixnum_data_type_get(VALUE self)
{
    return ID2SYM(id_type_int);
}

#to_type(type) ⇒ Object



256
257
258
259
260
261
# File 'ext/barracuda.c', line 256

static VALUE
fixnum_to_type(VALUE self, VALUE type)
{
    VALUE out = rb_funcall(rb_cType, rb_intern("new"), 1, self);
    return type_method_missing(out, type);
}