Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] RDoc for module IRB #738

Merged
merged 91 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
4b36516
[DOC] RDoc for module IRB
BurdetteLamar Oct 3, 2023
ef4759a
[DOC] RDoc for module IRB
BurdetteLamar Oct 3, 2023
1e6b32c
[DOC] RDoc for module IRB
BurdetteLamar Oct 3, 2023
6956b3d
[DOC] RDoc for module IRB
BurdetteLamar Oct 4, 2023
7f85f3b
[DOC] RDoc for module IRB
BurdetteLamar Oct 4, 2023
6f3efc1
[DOC] RDoc for module IRB
BurdetteLamar Oct 4, 2023
b2a66b2
[DOC] RDoc for module IRB
BurdetteLamar Oct 4, 2023
f53dd80
[DOC] RDoc for module IRB
BurdetteLamar Oct 6, 2023
8f07449
[DOC] RDoc for module IRB
BurdetteLamar Oct 6, 2023
a01b4bb
[DOC] RDoc for module IRB
BurdetteLamar Oct 7, 2023
3bfcc12
[DOC] RDoc for module IRB
BurdetteLamar Oct 8, 2023
6f6edac
[DOC] RDoc for module IRB
BurdetteLamar Oct 8, 2023
cdabcba
[DOC] RDoc for module IRB
BurdetteLamar Oct 8, 2023
e7b1952
[DOC] RDoc for module IRB
BurdetteLamar Oct 8, 2023
caa4787
[DOC] RDoc for module IRB
BurdetteLamar Oct 8, 2023
42d6b3d
[DOC] RDoc for module IRB
BurdetteLamar Oct 10, 2023
e48411f
[DOC] RDoc for module IRB
BurdetteLamar Oct 11, 2023
b783196
[DOC] RDoc for module IRB
BurdetteLamar Oct 11, 2023
6950e61
[DOC] RDoc for module IRB
BurdetteLamar Oct 12, 2023
d7d4258
[DOC] RDoc for module IRB
BurdetteLamar Oct 12, 2023
60b91d4
[DOC] RDoc for module IRB
BurdetteLamar Oct 12, 2023
73f39ae
[DOC] RDoc for module IRB
BurdetteLamar Oct 12, 2023
fcd267a
[DOC] RDoc for module IRB
BurdetteLamar Oct 13, 2023
68c6b0d
[DOC] RDoc for module IRB
BurdetteLamar Oct 13, 2023
d72c2bb
[DOC] RDoc for module IRB
BurdetteLamar Oct 13, 2023
0ea3cc9
[DOC] RDoc for module IRB
BurdetteLamar Oct 13, 2023
0009841
[DOC] RDoc for module IRB
BurdetteLamar Oct 13, 2023
ec9da0a
[DOC] RDoc for module IRB
BurdetteLamar Oct 14, 2023
110a3cc
[DOC] RDoc for module IRB
BurdetteLamar Oct 14, 2023
622bf26
[DOC] RDoc for module IRB
BurdetteLamar Oct 14, 2023
aba07ea
[DOC] RDoc for module IRB
BurdetteLamar Oct 15, 2023
532c516
[DOC] RDoc for module IRB
BurdetteLamar Oct 15, 2023
9cc8939
[DOC] RDoc for module IRB
BurdetteLamar Oct 15, 2023
68bb5fb
[DOC] RDoc for module IRB
BurdetteLamar Oct 15, 2023
2bbff8f
[DOC] RDoc for module IRB
BurdetteLamar Oct 15, 2023
0b59a2a
[DOC] RDoc for module IRB
BurdetteLamar Oct 15, 2023
03733aa
[DOC] RDoc for module IRB
BurdetteLamar Oct 15, 2023
59e7dd2
[DOC] RDoc for module IRB
BurdetteLamar Oct 15, 2023
76341b0
[DOC] RDoc for module IRB
BurdetteLamar Oct 15, 2023
ad851e4
[DOC] RDoc for module IRB
BurdetteLamar Oct 15, 2023
506abc6
[DOC] RDoc for module IRB
BurdetteLamar Oct 16, 2023
a3874dd
[DOC] Another example for spawn
BurdetteLamar Oct 16, 2023
fe9e49f
[DOC] RDoc for module IRB
BurdetteLamar Oct 16, 2023
29031e7
[DOC] RDoc for module IRB
BurdetteLamar Oct 17, 2023
8e5c032
[DOC] RDoc for module IRB
BurdetteLamar Oct 18, 2023
8ec2af3
[DOC] RDoc for module IRB
BurdetteLamar Oct 18, 2023
2453f05
[DOC] RDoc for module IRB
BurdetteLamar Oct 18, 2023
2655f4d
[DOC] RDoc for module IRB
BurdetteLamar Oct 18, 2023
1008bf0
[DOC] RDoc for module IRB
BurdetteLamar Oct 18, 2023
25f274d
[DOC] RDoc for module IRB
BurdetteLamar Oct 19, 2023
87c5595
[DOC] RDoc for module IRB
BurdetteLamar Oct 19, 2023
54afb13
[DOC] RDoc for module IRB
BurdetteLamar Oct 20, 2023
ef01ebc
[DOC] RDoc for module IRB
BurdetteLamar Oct 20, 2023
de18e54
[DOC] RDoc for module IRB
BurdetteLamar Oct 20, 2023
76ab12d
[DOC] RDoc for module IRB
BurdetteLamar Oct 20, 2023
32bd250
[DOC] RDoc for module IRB
BurdetteLamar Oct 21, 2023
2796055
[DOC] RDoc for module IRB
BurdetteLamar Oct 21, 2023
9785e01
[DOC] RDoc for module IRB
BurdetteLamar Oct 21, 2023
4c01e5a
[DOC] RDoc for module IRB
BurdetteLamar Oct 21, 2023
6364e5a
[DOC] RDoc for module IRB
BurdetteLamar Oct 21, 2023
614f4df
[DOC] RDoc for module IRB
BurdetteLamar Oct 21, 2023
871fa4f
[DOC] RDoc for module IRB
BurdetteLamar Oct 21, 2023
49c549d
[DOC] RDoc for module IRB
BurdetteLamar Oct 21, 2023
b167986
[DOC] RDoc for module IRB
BurdetteLamar Oct 22, 2023
172d950
[DOC] RDoc for module IRB
BurdetteLamar Oct 22, 2023
5ed12cb
[DOC] RDoc for module IRB
BurdetteLamar Oct 22, 2023
0fc1701
[DOC] RDoc for module IRB
BurdetteLamar Oct 22, 2023
774f0ab
[DOC] RDoc for module IRB
BurdetteLamar Oct 22, 2023
c00519d
[DOC] RDoc for module IRB
BurdetteLamar Oct 22, 2023
6a55f97
[DOC] RDoc for module IRB
BurdetteLamar Oct 22, 2023
da703e1
[DOC] RDoc for module IRB
BurdetteLamar Oct 22, 2023
33b8391
[DOC] RDoc for module IRB
BurdetteLamar Oct 22, 2023
cf322f5
[DOC] RDoc for module IRB
BurdetteLamar Oct 24, 2023
85d165e
[DOC] RDoc for module IRB
BurdetteLamar Oct 24, 2023
8e4e716
[DOC] RDoc for module IRB
BurdetteLamar Oct 25, 2023
a3caf36
[DOC] RDoc for module IRB
BurdetteLamar Nov 4, 2023
e29f880
Merge branch 'master' into doc
BurdetteLamar Nov 4, 2023
de0e438
[DOC] RDoc for module IRB
BurdetteLamar Nov 13, 2023
0cca7c7
Merge branch 'doc' of https://github.com/BurdetteLamar/irb into doc
BurdetteLamar Nov 13, 2023
23e2687
[DOC] RDoc for module IRB
BurdetteLamar Nov 14, 2023
7173897
[DOC] Tracer doc
BurdetteLamar Nov 14, 2023
2e1aac8
RDoc for module IRB
BurdetteLamar Nov 28, 2023
8a35a9c
Merge branch 'master' into doc
BurdetteLamar Nov 28, 2023
96721c5
RDoc for module IRB
BurdetteLamar Dec 10, 2023
0b9e660
RDoc for module IRB
BurdetteLamar Dec 11, 2023
80632da
RDoc for module IRB
BurdetteLamar Dec 11, 2023
40d0b3e
RDoc for module IRB
BurdetteLamar Dec 11, 2023
6024f8d
RDoc for module IRB
BurdetteLamar Dec 11, 2023
8b91a17
RDoc for module IRB
BurdetteLamar Dec 11, 2023
fd8fb32
RDoc for module IRB
BurdetteLamar Dec 11, 2023
1422488
RDoc for module IRB
BurdetteLamar Dec 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .document
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LICENSE.txt
README.md
doc
doc/irb/indexes.rdoc
lib/**/*.rb
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/.yardoc
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/
Expand Down
190 changes: 190 additions & 0 deletions doc/irb/indexes.rdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
== Indexes

=== Index of Command-Line Options

These are the \IRB command-line options, with links to explanatory text:

- <tt>-d</tt>: Set <tt>$DEBUG</tt> and {$VERBOSE}[rdoc-ref:IRB@Verbosity]
to +true+.
- <tt>-E _ex_[:_in_]</tt>: Set initial external (ex) and internal (in)
{encodings}[rdoc-ref:IRB@Encodings] (same as <tt>ruby -E></tt>).
- <tt>-f</tt>: Don't initialize from {configuration file}[rdoc-ref:IRB@Configuration+File].
- <tt>-I _dirpath_</tt>: Specify {$LOAD_PATH directory}[rdoc-ref:IRB@Load+Modules]
(same as <tt>ruby -I</tt>).
- <tt>-r _load-module_</tt>: Require {load-module}[rdoc-ref:IRB@Load+Modules]
(same as <tt>ruby -r</tt>).
- <tt>-U</tt>: Set external and internal {encodings}[rdoc-ref:IRB@Encodings] to UTF-8.
- <tt>-w</tt>: Suppress {warnings}[rdoc-ref:IRB@Warnings] (same as <tt>ruby -w</tt>).
- <tt>-W[_level_]</tt>: Set {warning level}[rdoc-ref:IRB@Warnings];
0=silence, 1=medium, 2=verbose (same as <tt>ruby -W</tt>).
- <tt>--autocomplete</tt>: Use {auto-completion}[rdoc-ref:IRB@Automatic+Completion].
- <tt>--back-trace-limit _n_</tt>: Set a {backtrace limit}[rdoc-ref:IRB@Tracer];
display at most the top +n+ and bottom +n+ entries.
- <tt>--colorize</tt>: Use {color-highlighting}[rdoc-ref:IRB@Color+Highlighting]
for input and output.
- <tt>--context-mode _n_</tt>: Select method to create Binding object
for new {workspace}[rdoc-ref:IRB@Commands]; +n+ in range <tt>0..4</tt>.
- <tt>--echo</tt>: Print ({echo}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29])
return values.
- <tt>--extra-doc-dir _dirpath_</tt>:
Add a {documentation directory}[rdoc-ref:IRB@RI+Documentation+Directories]
for the documentation dialog.
- <tt>--inf-ruby-mode</tt>: Set prompt mode to {:INF_RUBY}[rdoc-ref:IRB@Pre-Defined+Prompts]
(appropriate for +inf-ruby-mode+ on Emacs);
suppresses --multiline and --singleline.
- <tt>--inspect</tt>: Use method +inspect+ for printing ({echoing}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29])
return values.
- <tt>--multiline</tt>: Use the multiline editor as the {input method}[rdoc-ref:IRB@Input+Method].
- <tt>--noautocomplete</tt>: Don't use {auto-completion}[rdoc-ref:IRB@Automatic+Completion].
- <tt>--nocolorize</tt>: Don't use {color-highlighting}[rdoc-ref:IRB@Color+Highlighting]
for input and output.
- <tt>--noecho</tt>: Don't print ({echo}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29])
return values.
- <tt>--noecho-on-assignment</tt>: Don't print ({echo}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29])
result on assignment.
- <tt>--noinspect</tt>: Don't se method +inspect+ for printing ({echoing}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29])
return values.
- <tt>--nomultiline</tt>: Don't use the multiline editor as the {input method}[rdoc-ref:IRB@Input+Method].
- <tt>--noprompt</tt>: Don't print {prompts}[rdoc-ref:IRB@Prompt+and+Return+Formats].
- <tt>--noscript</tt>: Treat the first command-line argument as a normal
{command-line argument}[rdoc-ref:IRB@Initialization+Script],
and include it in +ARGV+.
- <tt>--nosingleline</tt>: Don't use the singleline editor as the {input method}[rdoc-ref:IRB@Input+Method].
- <tt>--noverbose</tt>Don't print {verbose}[rdoc-ref:IRB@Verbosity] details.
- <tt>--prompt _mode_</tt>, <tt>--prompt-mode _mode_</tt>:
Set {prompt and return formats}[rdoc-ref:IRB@Prompt+and+Return+Formats];
+mode+ may be a {pre-defined prompt}[rdoc-ref:IRB@Pre-Defined+Prompts]
or the name of a {custom prompt}[rdoc-ref:IRB@Custom+Prompts].
- <tt>--script</tt>: Treat the first command-line argument as the path to an
{initialization script}[rdoc-ref:IRB@Initialization+Script],
and omit it from +ARGV+.
- <tt>--simple-prompt</tt>, <tt>--sample-book-mode</tt>:
Set prompt mode to {:SIMPLE}[rdoc-ref:IRB@Pre-Defined+Prompts].
- <tt>--singleline</tt>: Use the singleline editor as the {input method}[rdoc-ref:IRB@Input+Method].
- <tt>--tracer</tt>: Use {Tracer}[rdoc-ref:IRB@Tracer] to print a stack trace for each input command.
- <tt>--truncate-echo-on-assignment</tt>: Print ({echo}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29])
truncated result on assignment.
- <tt>--verbose</tt>Print {verbose}[rdoc-ref:IRB@Verbosity] details.
- <tt>-v</tt>, <tt>--version</tt>: Print the {IRB version}[rdoc-ref:IRB@Version].
- <tt>-h</tt>, <tt>--help</tt>: Print the {IRB help text}[rdoc-ref:IRB@Help].
- <tt>--</tt>: Separate options from {arguments}[rdoc-ref:IRB@Command-Line+Arguments]
on the command-line.

=== Index of \IRB.conf Entries

These are the keys for hash \IRB.conf entries, with links to explanatory text;
for each entry that is pre-defined, the initial value is given:

- <tt>:AP_NAME</tt>: \IRB {application name}[rdoc-ref:IRB@Application+Name];
initial value: <tt>'irb'</tt>.
- <tt>:AT_EXIT</tt>: Array of hooks to call
{at exit}[rdoc-ref:IRB@IRB];
initial value: <tt>[]</tt>.
- <tt>:AUTO_INDENT</tt>: Whether {automatic indentation}[rdoc-ref:IRB@Automatic+Indentation]
is enabled; initial value: +true+.
- <tt>:BACK_TRACE_LIMIT</tt>: Sets the {back trace limit}[rdoc-ref:IRB@Tracer];
initial value: +16+.
- <tt>:COMMAND_ALIASES</tt>: Defines input {command aliases}[rdoc-ref:IRB@Command+Aliases];
initial value:

{
"$": :show_source,
"@": :whereami,
}

- <tt>:CONTEXT_MODE</tt>: Sets the {context mode}[rdoc-ref:IRB@Context+Mode],
the type of binding to be used when evaluating statements;
initial value: +4+.
- <tt>:ECHO</tt>: Whether to print ({echo}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29])
return values;
initial value: +nil+, which would set +conf.echo+ to +true+.
- <tt>:ECHO_ON_ASSIGNMENT</tt>: Whether to print ({echo}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29])
return values on assignment;
initial value: +nil+, which would set +conf.echo_on_assignment+ to +:truncate+.
- <tt>:EVAL_HISTORY</tt>: How much {evaluation history}[rdoc-ref:IRB@Evaluation+History]
is to be stored; initial value: +nil+.
- <tt>:EXTRA_DOC_DIRS</tt>: \Array of
{RI documentation directories}[rdoc-ref:IRB@RI+Documentation+Directories]
to be parsed for the documentation dialog;
initial value: <tt>[]</tt>.
- <tt>:IGNORE_EOF</tt>: Whether to ignore {end-of-file}[rdoc-ref:IRB@End-of-File];
initial value: +false+.
- <tt>:IGNORE_SIGINT</tt>: Whether to ignore {SIGINT}[rdoc-ref:IRB@SIGINT];
initial value: +true+.
- <tt>:INSPECT_MODE</tt>: Whether to use method +inspect+ for printing
({echoing}[rdoc-ref:IRB@Return-Value+Printing+-28Echoing-29]) return values;
initial value: +true+.
- <tt>:IRB_LIB_PATH</tt>: The path to the {IRB library directory}[rdoc-ref:IRB@IRB+Library+Directory]; initial value:
<tt>"<i>RUBY_DIR</i>/lib/ruby/gems/<i>RUBY_VER_NUM</i>/gems/irb-<i>IRB_VER_NUM</i>/lib/irb"</tt>,
where:

- <i>RUBY_DIR</i> is the Ruby installation dirpath.
- <i>RUBY_VER_NUM</i> is the Ruby version number.
- <i>IRB_VER_NUM</i> is the \IRB version number.

- <tt>:IRB_NAME</tt>: {IRB name}[rdoc-ref:IRB@IRB+Name];
initial value: <tt>'irb'</tt>.
- <tt>:IRB_RC</tt>: {Configuration monitor}[rdoc-ref:IRB@Configuration+Monitor];
initial value: +nil+.
- <tt>:LC_MESSAGES</tt>: {Locale}[rdoc-ref:IRB@Locale];
initial value: IRB::Locale object.
- <tt>:LOAD_MODULES</tt>: deprecated.
- <tt>:MAIN_CONTEXT</tt>: The {context}[rdoc-ref:IRB@Session+Context] for the main \IRB session;
initial value: IRB::Context object.
- <tt>:MEASURE</tt>: Whether to
{measure performance}[rdoc-ref:IRB@Performance+Measurement];
initial value: +false+.
- <tt>:MEASURE_CALLBACKS</tt>: Callback methods for
{performance measurement}[rdoc-ref:IRB@Performance+Measurement];
initial value: <tt>[]</tt>.
- <tt>:MEASURE_PROC</tt>: Procs for
{performance measurement}[rdoc-ref:IRB@Performance+Measurement];
initial value:

{
:TIME=>#<Proc:0x0000556e271c6598 /var/lib/gems/3.0.0/gems/irb-1.8.3/lib/irb/init.rb:106>,
:STACKPROF=>#<Proc:0x0000556e271c6548 /var/lib/gems/3.0.0/gems/irb-1.8.3/lib/irb/init.rb:116>
}

- <tt>:PROMPT</tt>: \Hash of {defined prompts}[rdoc-ref:IRB@Prompt+and+Return+Formats];
initial value:

{
:NULL=>{:PROMPT_I=>nil, :PROMPT_S=>nil, :PROMPT_C=>nil, :RETURN=>"%s\n"},
:DEFAULT=>{:PROMPT_I=>"%N(%m):%03n> ", :PROMPT_S=>"%N(%m):%03n%l ", :PROMPT_C=>"%N(%m):%03n* ", :RETURN=>"=> %s\n"},
:CLASSIC=>{:PROMPT_I=>"%N(%m):%03n:%i> ", :PROMPT_S=>"%N(%m):%03n:%i%l ", :PROMPT_C=>"%N(%m):%03n:%i* ", :RETURN=>"%s\n"},
:SIMPLE=>{:PROMPT_I=>">> ", :PROMPT_S=>"%l> ", :PROMPT_C=>"?> ", :RETURN=>"=> %s\n"},
:INF_RUBY=>{:PROMPT_I=>"%N(%m):%03n> ", :PROMPT_S=>nil, :PROMPT_C=>nil, :RETURN=>"%s\n", :AUTO_INDENT=>true},
:XMP=>{:PROMPT_I=>nil, :PROMPT_S=>nil, :PROMPT_C=>nil, :RETURN=>" ==>%s\n"}
}

- <tt>:PROMPT_MODE</tt>: Name of {current prompt}[rdoc-ref:IRB@Prompt+and+Return+Formats];
initial value: +:DEFAULT+.
- <tt>:RC</tt>: Whether a {configuration file}[rdoc-ref:IRB@Configuration+File]
was found and interpreted;
initial value: +true+ if a configuration file was found, +false+ otherwise.
- <tt>:RC_NAME_GENERATOR</tt>: \Proc to generate paths of potential
{configuration files}[rdoc-ref:IRB@Configuration+File];
initial value: <tt>=> #<Proc:0x000055f9bebfed80 /var/lib/gems/3.0.0/gems/irb-1.8.3/lib/irb/init.rb:401></tt>.
- <tt>:SAVE_HISTORY</tt>: Number of commands to save in
{input command history}[rdoc-ref:IRB@Input+Command+History];
initial value: +1000+.
- <tt>:SINGLE_IRB</tt>: Whether command-line option <tt>--single-irb</tt> was given;
initial value: +true+ if the option was given, +false+ otherwise.
See {Single-IRB Mode}[rdoc-ref:IRB@Single-IRB+Mode].
- <tt>:USE_AUTOCOMPLETE</tt>: Whether to use
{automatic completion}[rdoc-ref:IRB@Automatic+Completion];
initial value: +true+.
- <tt>:USE_COLORIZE</tt>: Whether to use
{color highlighting}[rdoc-ref:IRB@Color+Highlighting];
initial value: +true+.
- <tt>:USE_LOADER</tt>: Whether to use the
{IRB loader}[rdoc-ref:IRB@IRB+Loader] for +require+ and +load+;
initial value: +false+.
st0012 marked this conversation as resolved.
Show resolved Hide resolved
- <tt>:USE_TRACER</tt>: Whether to use the
{IRB tracer}[rdoc-ref:IRB@Tracer];
initial value: +false+.
- <tt>:VERBOSE</tt>: Whether to print {verbose output}[rdoc-ref:IRB@Verbosity];
initial value: +nil+.
- <tt>:__MAIN__</tt>: The main \IRB object;
initial value: +main+.
Loading