Sha256: 692ba2d8b2354f26ed799be91e5dc89f4d36b15f351d07042adac34f09a69f51
Contents?: true
Size: 1.86 KB
Versions: 12
Compression:
Stored size: 1.86 KB
Contents
o:$YARD::CodeObjects::MethodObject: @name:initialize:@docstringIC:YARD::Docstring"�Creates a new anonymous (unnamed) class with the given superclass (or <code>Object</code> if no parameter is given). You can give a class a name by assigning the class object to a constant. :@objectu:YARD::StubProxyClass#initialize: @summary0: @all"�Creates a new anonymous (unnamed) class with the given superclass (or <code>Object</code> if no parameter is given). You can give a class a name by assigning the class object to a constant. @overload new(super_class=Object) @return [Class]:@ref_tags[: @tags[o:YARD::Tags::OverloadTag ; u;Class#initialize;:new;IC; " ; u;Class#initialize;0; "@return [Class];[;[o:YARD::Tags::Tag ; 0;0:@types[" Class: @text":@tag_name"return;0:@parameters[[:super_class"Object;0:@signature"new(super_class=Object);" overload:@current_file_has_commentsF:@scope: instance;[:@docstring_extra0:@files[[" object.c0:@namespaceu; Class: @path"Class#initialize;[:@visibility:public:@source"4/* * call-seq: * Class.new(super_class=Object) => a_class * * Creates a new anonymous (unnamed) class with the given superclass * (or <code>Object</code> if no parameter is given). You can give a * class a name by assigning the class object to a constant. * */ static VALUE rb_class_initialize(argc, argv, klass) int argc; VALUE *argv; VALUE klass; { VALUE super; if (RCLASS(klass)->super != 0) { rb_raise(rb_eTypeError, "already initialized class"); } if (rb_scan_args(argc, argv, "01", &super) == 0) { super = rb_cObject; } else { rb_check_inheritable(super); } RCLASS(klass)->super = super; rb_make_metaclass(klass, RBASIC(super)->klass); rb_mod_initialize(klass); rb_class_inherited(super, klass); return klass; }:@source_type:c
Version data entries
12 entries across 12 versions & 2 rubygems