Class: Empty
Class Method Summary collapse
-
.new(*args) ⇒ Object
Allocates memory for the instance and then calls initialize on the object.
-
.superclass ⇒ Class || nil
Returns the superclass of the class, or nil if current class is
Empty
.
Instance Method Summary collapse
-
#initialize ⇒ self
constructor
Returns the receiver.
Constructor Details
#initialize ⇒ self
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; } |
.superclass ⇒ Class || 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.
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); } |