Indexes
Index of Command-Line Options
These are the IRB command-line options, with links to explanatory text:
-d: Set$DEBUGand $VERBOSE totrue.-E _ex_[:_in_]: Set initial external (ex) and internal (in) encodings (same asruby -E).-f: Don't initialize from configuration file.-I _dirpath_: Specify $LOAD_PATH directory (same asruby -I).-r _load-module_: Require load-module (same asruby -r).-U: Set external and internal encodings to UTF-8.-w: Suppress warnings (same asruby -w).-W[_level_]: Set warning level; 0=silence, 1=medium, 2=verbose (same asruby -W).--autocomplete: Use auto-completion.--back-trace-limit _n_: Set a backtrace limit; display at most the topnand bottomnentries.--colorize: Use color-highlighting for input and output.--context-mode _n_: Select method to createBindingobject for new workspace;nin range0..4.--echo: Print (echo) return values.--extra-doc-dir _dirpath_: Add a documentation directory for the documentation dialog.--inf-ruby-mode: Set prompt mode to :INF_RUBY (appropriate forinf-ruby-modeon Emacs); suppresses --multiline and --singleline.--inspect: Use methodinspectfor printing (echoing) return values.--multiline: Use the multiline editor as the input method.--noautocomplete: Don't use auto-completion.--nocolorize: Don't use color-highlighting for input and output.--noecho: Don't print (echo) return values.--noecho-on-assignment: Don't print (echo) result on assignment.--noinspect: Don't se methodinspectfor printing (echoing) return values.--nomultiline: Don't use the multiline editor as the input method.--noprompt: Don't print prompts.--noscript: Treat the first command-line argument as a normal command-line argument, and include it inARGV.--nosingleline: Don't use the singleline editor as the input method.--noverbose: Don't print verbose details.--prompt _mode_,--prompt-mode _mode_: Set prompt and return formats;modemay be a pre-defined prompt or the name of a custom prompt.--script: Treat the first command-line argument as the path to an initialization script, and omit it fromARGV.--simple-prompt,--sample-book-mode: Set prompt mode to :SIMPLE.--singleline: Use the singleline editor as the input method.--tracer: Use Tracer to print a stack trace for each input command.--truncate-echo-on-assignment: Print (echo) truncated result on assignment.--verbosePrint verbose details.-v,--version: Print the IRB version.-h,--help: Print the IRB help text.--: Separate options from 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:
-
:AP_NAME: IRB application name; initial value:'irb'. -
:AT_EXIT: Array of hooks to call at exit; initial value:[]. -
:AUTO_INDENT: Whether automatic indentation is enabled; initial value:true. -
:BACK_TRACE_LIMIT: Sets the back trace limit; initial value:16. -
:COMMAND_ALIASES: Defines input command aliases; initial value:{ "$": :show_source, "@": :whereami, } -
:CONTEXT_MODE: Sets the context mode, the type of binding to be used when evaluating statements; initial value:4. -
:ECHO: Whether to print (echo) return values; initial value:nil, which would setconf.echototrue. -
:ECHO_ON_ASSIGNMENT: Whether to print (echo) return values on assignment; initial value:nil, which would setconf.echo_on_assignmentto:truncate. -
:EVAL_HISTORY: How much evaluation history is to be stored; initial value:nil. -
:EXTRA_DOC_DIRS: Array of RI documentation directories to be parsed for the documentation dialog; initial value:[]. -
:IGNORE_EOF: Whether to ignore end-of-file; initial value:false. -
:IGNORE_SIGINT: Whether to ignore SIGINT; initial value:true. -
:INSPECT_MODE: Whether to use methodinspectfor printing (echoing) return values; initial value:true. -
:IRB_LIB_PATH: The path to the IRB library directory; initial value:- `"<i>RUBY_DIR</i>/lib/ruby/gems/<i>RUBY_VER_NUM</i>/gems/irb-<i>IRB_VER_NUM</i>/lib/irb"`, 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. -
:IRB_NAME: IRB name; initial value:'irb'. -
:IRB_RC: Configuration monitor; initial value:nil. -
:LC_MESSAGES: Locale; initial value: IRB::Locale object. -
:LOAD_MODULES: deprecated. -
:MAIN_CONTEXT: The context for the main IRB session; initial value: IRB::Context object. -
:MEASURE: Whether to measure performance; initial value:false. -
:MEASURE_CALLBACKS: Callback methods for performance measurement; initial value:[]. -
:MEASURE_PROC: Procs for 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> } -
:PROMPT: Hash of defined prompts; 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"} } -
:PROMPT_MODE: Name of current prompt; initial value::DEFAULT. -
:RC: Whether a configuration file was found and interpreted; initial value:trueif a configuration file was found,falseotherwise. -
:SAVE_HISTORY: Number of commands to save in input command history; initial value:1000. -
:SINGLE_IRB: Whether command-line option--single-irbwas given; initial value:trueif the option was given,falseotherwise. See Single-IRB Mode. -
:USE_AUTOCOMPLETE: Whether to use automatic completion; initial value:true. -
:USE_COLORIZE: Whether to use color highlighting; initial value:true. -
:USE_LOADER: Whether to use the IRB loader forrequireandload; initial value:false. -
:USE_TRACER: Whether to use the IRB tracer; initial value:false. -
:VERBOSE: Whether to print verbose output; initial value:nil. -
:__MAIN__: The main IRB object; initial value:main.