You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/language/box.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Ruby Box is designed to provide separated spaces in a Ruby process, to isolate a
11
11
12
12
## TODOs
13
13
14
-
* Add the loaded namespace on iseq to check if another namespace tries running the iseq (add a field only when VM_CHECK_MODE?)
14
+
* Add the loaded box on iseq to check if another box tries running the iseq (add a field only when VM_CHECK_MODE?)
15
15
* Assign its own TOPLEVEL_BINDING in boxes
16
16
* Fix calling `warn` in boxes to refer `$VERBOSE` and `Warning.warn` in the box
17
17
* Make an internal data container class `Ruby::Box::Entry` invisible
@@ -22,7 +22,7 @@ Ruby Box is designed to provide separated spaces in a Ruby process, to isolate a
22
22
### Enabling Ruby Box
23
23
24
24
First, an environment variable should be set at the ruby process bootup: `RUBY_BOX=1`.
25
-
The only valid value is `1` to enable namespace. Other values (or unset `RUBY_BOX`) means disabling namespace. And setting the value after Ruby program starts doesn't work.
25
+
The only valid value is `1` to enable Ruby Box. Other values (or unset `RUBY_BOX`) means disabling Ruby Box. And setting the value after Ruby program starts doesn't work.
26
26
27
27
### Using Ruby Box
28
28
@@ -75,7 +75,7 @@ There are two box types:
75
75
76
76
There is the root box, just a single box in a Ruby process. Ruby bootstrap runs in the root box, and all builtin classes/modules are defined in the root box. (See "Builtin classes and modules".)
77
77
78
-
User boxes are to run user-written programs and libraries loaded from user programs. The user's main program (specified by the `ruby` command line argument) is executed in the "main" box, which is a user namespace automatically created at the end of Ruby's bootstrap, copied from the root box.
78
+
User boxes are to run user-written programs and libraries loaded from user programs. The user's main program (specified by the `ruby` command line argument) is executed in the "main" box, which is a user box automatically created at the end of Ruby's bootstrap, copied from the root box.
79
79
80
80
When `Ruby::Box.new` is called, an "optional" box (a user, non-main box) is created, copied from the root box. All user boxes are flat, copied from the root box.
0 commit comments