class UndefClass
Public Instance Methods
==(p1)
click to toggle source
static VALUE rb_ud_equal (VALUE self, VALUE other) { return ( self == other ) ? Qtrue : Qfalse; }
inspect()
click to toggle source
static VALUE rb_ud_inspect (VALUE self) { return rb_str_new2("UNDEF"); }
to_f()
click to toggle source
static VALUE rb_ud_to_f (VALUE self) { rb_raise(rb_eTypeError, "can't coerce UNDEF into Float"); /* return rb_float_new(0.0/0.0); */ }
to_i()
click to toggle source
static VALUE rb_ud_to_i (VALUE self) { rb_raise(rb_eTypeError, "can't coerce UNDEF into Integer"); }
Also aliased as: to_int
to_s()
click to toggle source
static VALUE rb_ud_to_s (VALUE self) { /* rb_raise(rb_eTypeError, "can't coerce UNDEF into String"); */ return rb_str_new2("UNDEF"); }