Skip to content

Commit 5f09e1f

Browse files
committed
Box: [DOC] fix the class name in rdoc
Also remove a stale TODO.
1 parent 8db3642 commit 5f09e1f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

box.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ rb_get_box_object(rb_box_t *box)
348348

349349
/*
350350
* call-seq:
351-
* Namespace.new -> new_box
351+
* Ruby::Box.new -> new_box
352352
*
353353
* Returns a new Ruby::Box object.
354354
*/
@@ -389,7 +389,7 @@ box_initialize(VALUE box_value)
389389

390390
/*
391391
* call-seq:
392-
* Namespace.enabled? -> true or false
392+
* Ruby::Box.enabled? -> true or false
393393
*
394394
* Returns +true+ if Ruby::Box is enabled.
395395
*/
@@ -401,7 +401,7 @@ rb_box_s_getenabled(VALUE recv)
401401

402402
/*
403403
* call-seq:
404-
* Namespace.current -> box, nil or false
404+
* Ruby::Box.current -> box, nil or false
405405
*
406406
* Returns the current box.
407407
* Returns +nil+ if Ruby Box is not enabled.
@@ -795,10 +795,6 @@ rb_box_local_extension(VALUE box_value, VALUE fname, VALUE path, VALUE *cleanup)
795795
return new_path;
796796
}
797797

798-
// TODO: delete it just after dln_load? or delay it?
799-
// At least for _WIN32, deleting extension files should be delayed until the namespace's destructor.
800-
// And it requires calling dlclose before deleting it.
801-
802798
static VALUE
803799
rb_box_load(int argc, VALUE *argv, VALUE box)
804800
{

0 commit comments

Comments
 (0)