1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* object.c (rb_obj_alloc): RDoc updated. a patch from Gaston

Ramos <ramos.gaston at gmail.com> in [ruby-core:17073].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-06-04 09:55:14 +00:00
parent e6c1752137
commit a690ad4698
2 changed files with 20 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Wed Jun 4 18:53:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (rb_obj_alloc): RDoc updated. a patch from Gaston
Ramos <ramos.gaston at gmail.com> in [ruby-core:17073].
Wed Jun 4 18:36:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org> Wed Jun 4 18:36:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar * lib/rdoc.rb: massive spelling correction patch from Evan Farrar

View file

@ -1361,8 +1361,21 @@ rb_class_initialize(int argc, VALUE *argv, VALUE klass)
* call-seq: * call-seq:
* class.allocate() => obj * class.allocate() => obj
* *
* Allocates space for a new object of <i>class</i>'s class. The * Allocates space for a new object of <i>class</i>'s class and does not
* returned object must be an instance of <i>class</i>. * call initialize on the new instance. The returned object must be an
* instance of <i>class</i>.
*
* klass = Class.new do
* def initialize(*args)
* @initialized = true
* end
*
* def initialized?
* @initialized || false
* end
* end
*
* klass.allocate.initialized? #=> false
* *
*/ */