ord()
public
Returns the int itself.
?a.ord
This method is intended for compatibility to character constant in Ruby
1.9. For example, ?a.ord returns 97 both in
1.8 and 1.9.
Show source
/*
* call-seq:
* int.ord => int
*
* Returns the int itself.
*
* ?a.ord #=> 97
*
* This method is intended for compatibility to
* character constant in Ruby 1.9.
* For example, ?a.ord returns 97 both in 1.8 and 1.9.
*/
static VALUE
int_ord(num)
VALUE num;
{
return num;
}