Class: Empty

Inherits:
Object show all
Defined in:
ext/evilr/evilr.c

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeself

Returns the receiver.



930
931
932
# File 'ext/evilr/evilr.c', line 930

static VALUE evilr_empty_initialize(VALUE self) {
  return self;
}

Class Method Details

.new(*args) ⇒ Object

Allocates memory for the instance and then calls initialize on the object.



909
910
911
912
913
914
# File 'ext/evilr/evilr.c', line 909

static VALUE evilr_empty_new(int argc, VALUE* argv, VALUE klass) {
  VALUE obj;
  obj = evilr_empty_alloc(klass);
  rb_obj_call_init(obj, argc, argv);
  return obj;
}

.superclassClass || nil

Returns the superclass of the class, or nil if current class is Empty. Basically a copy of the standard superclass method, without some checking.

Returns:



922
923
924
# File 'ext/evilr/evilr.c', line 922

static VALUE evilr_empty_superclass(VALUE klass) {
  return klass == empty ? Qnil : evilr__next_class(klass);
}