static public Method

Fixnum.induced_from(p1)

Fixnum.induced_from(obj)      fixnum

Convert obj to a Fixnum. Works with numeric parameters. Also works with Symbols, but this is deprecated.

Source Code

/*
* call-seq:
*   Fixnum.induced_from(obj)    =>  fixnum
*
* Convert <code>obj</code> to a Fixnum. Works with numeric parameters.
* Also works with Symbols, but this is deprecated.
*/

static VALUE
rb_fix_induced_from(klass, x)
   VALUE klass, x;
{
   return rb_num2fix(x);
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.