to_int()
public
Invokes the child class’s to_i method to convert num to an
integer.
Show source
/*
* call-seq:
* num.to_int => integer
*
* Invokes the child class's <code>to_i</code> method to convert
* <i>num</i> to an integer.
*/
static VALUE
num_to_int(num)
VALUE num;
{
return rb_funcall(num, id_to_i, 0, 0);
}