Sha256: 6274aa8e1e74f5454c1ac8d5e2a3385a0fd80e3fcafb4b3be81f84402059f11d

Contents?: true

Size: 1.66 KB

Versions: 12

Compression:

Stored size: 1.66 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:new:@docstringIC:YARD::Docstring"ūCalls <code>allocate</code> to create a new object of
<i>class</i>'s class, then invokes that object's
<code>initialize</code> method, passing it <i>args</i>.
This is the method that ends up getting called whenever
an object is constructed using .new.
:@objectu:YARD::StubProxyClass#new:
@summary0:	@all"*Calls <code>allocate</code> to create a new object of
<i>class</i>'s class, then invokes that object's
<code>initialize</code> method, passing it <i>args</i>.
This is the method that ends up getting called whenever
an object is constructed using .new.



@overload new(args, ...)
  @return [Object]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Class#new;;;IC;	"
;
u;Class#new;0;
"@return [Object];[;[o:YARD::Tags::Tag
;
0;0:@types["Object:
@text":@tag_name"return;0:@parameters[[:	args0[:...0;0:@signature"new(args, ...);"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["
object.c0:@namespaceu;
Class:
@path"Class#new;[:@visibility:public:@source"#/*
 *  call-seq:
 *     class.new(args, ...)    =>  obj
 *  
 *  Calls <code>allocate</code> to create a new object of
 *  <i>class</i>'s class, then invokes that object's
 *  <code>initialize</code> method, passing it <i>args</i>.
 *  This is the method that ends up getting called whenever
 *  an object is constructed using .new.
 *     
 */

VALUE
rb_class_new_instance(argc, argv, klass)
    int argc;
    VALUE *argv;
    VALUE klass;
{
    VALUE obj;

    obj = rb_obj_alloc(klass);
    rb_obj_call_init(obj, argc, argv);

    return obj;
}:@source_type:c

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Class/new_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Class/new_i.dat