File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -84,14 +84,15 @@ Hello World
84
84
85
85
The following commands are available on IRB. You can get the same output from the ` show_cmds ` command.
86
86
87
-
88
87
```
89
- IRB
88
+ Workspace
90
89
cwws Show the current workspace.
91
90
chws Change the current workspace to an object.
92
91
workspaces Show workspaces.
93
92
pushws Push an object to the workspace stack.
94
93
popws Pop a workspace from the workspace stack.
94
+
95
+ IRB
95
96
irb_load Load a Ruby file.
96
97
irb_require Require a Ruby file.
97
98
source Loads a given file in the current session.
119
120
measure `measure` enables the mode to measure processing time. `measure :off` disables it.
120
121
121
122
Context
123
+ help [DEPRECATED] Enter the mode to look up RI documents.
122
124
show_doc Enter the mode to look up RI documents.
123
125
ls Show methods, constants, and variables. `-g [query]` or `-G [query]` allows you to filter out the output.
124
126
show_source Show the source code of a given method or constant.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module IRB
13
13
module ExtendCommand
14
14
15
15
class CurrentWorkingWorkspace < Nop
16
- category "IRB "
16
+ category "Workspace "
17
17
description "Show the current workspace."
18
18
19
19
def execute ( *obj )
@@ -22,7 +22,7 @@ def execute(*obj)
22
22
end
23
23
24
24
class ChangeWorkspace < Nop
25
- category "IRB "
25
+ category "Workspace "
26
26
description "Change the current workspace to an object."
27
27
28
28
def execute ( *obj )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module IRB
12
12
13
13
module ExtendCommand
14
14
class Workspaces < Nop
15
- category "IRB "
15
+ category "Workspace "
16
16
description "Show workspaces."
17
17
18
18
def execute ( *obj )
@@ -21,7 +21,7 @@ def execute(*obj)
21
21
end
22
22
23
23
class PushWorkspace < Workspaces
24
- category "IRB "
24
+ category "Workspace "
25
25
description "Push an object to the workspace stack."
26
26
27
27
def execute ( *obj )
@@ -31,7 +31,7 @@ def execute(*obj)
31
31
end
32
32
33
33
class PopWorkspace < Workspaces
34
- category "IRB "
34
+ category "Workspace "
35
35
description "Pop a workspace from the workspace stack."
36
36
37
37
def execute ( *obj )
You can’t perform that action at this time.
0 commit comments