FreeBSD Manual Pages
IRB(1) Ruby Programmer's Reference Guide IRB(1) NAME irb -- Interactive Ruby Shell SYNOPSIS irb [--version] [-dfUw] [-I directory] [-r library] [-E external[:internal]] [-W[level]] [--[no]inspect] [--[no]multiline] [--[no]singleline] [--[no]echo] [--[no]colorize] [--[no]autocomplete] [--[no]verbose] [--prompt mode] [--prompt-mode mode] [--inf-ruby-mode] [--simple-prompt] [--noprompt] [--tracer] [--back-trace-limit n] [--] [program_file] [argument ...] DESCRIPTION irb is the REPL(read-eval-print loop) environment for Ruby programs. OPTIONS --version --E-eenxctoedrinnaglexitnetrenranla[l:internal] -I path -U -d -f -w -W --h-help -r library --inspect --noinspect --multiline --nomultiline --singleline --nosingleline --extra-doc-dir --echo --noecho --echo-on-assignment --noecho-on-assignment --truncate-echo-on-assignment --colorize --nocolorize --autocomplete --noautocomplete --regexp-completor --type-completor --verbose --noverbose ----pprroommpptt-mmooddee mode --inf-ruby-mode --simple-prompt --noprompt --tracer --back-trace-limit n ENVIRONMENT IRB_LANG The locale used for irb. IRBRC The path to the personal initialization file. XDG_CONFIG_HOME irb respects XDG_CONFIG_HOME. If it is set and IRBRC is unset, load $XDG_CONFIG_HOME/irb/irbrc as a per- sonal initialization file. RI_PAGER The command specified would be used as a pager. PAGER The command specified would be used as a pager if RI_PAGER is unset. VISUAL Its value would be used to open files by the edit command. EDITOR Its value would be used to open files by the edit command if VISUAL is unset. NO_COLOR Assigning a value to it disables colorization. IRB_USE_AUTOCOMPLETE Assigning false to it disables autocompletion. IRB_COMPLETOR Autocompletion behavior. Allowed values are regexp or type IRB_COPY_COMMAND Overrides the default program used to interface with the system clipboard. Also irb depends on same variables as ruby(1). FILES ~/.irbrc Personal irb initialization. If IRBRC is set, read $IRBRC instead. If IRBRC is not set and XDG_CONFIG_HOME is set, $XDG_CONFIG_HOME/irb/irbrc is loaded. EXAMPLES % irb irb(main):001:0> 1 + 1 2 irb(main):002:0> def t(x) irb(main):003:1> x + 1 irb(main):004:1> end => :t irb(main):005:0> t(3) => 4 irb(main):006:0> if t(3) == 4 irb(main):007:1> p :ok irb(main):008:1> end :ok => :ok irb(main):009:0> quit % SEE ALSO ruby(1). REPORTING BUGS * Security vulnerabilities should be reported via an email to secu- rity@ruby-lang.org. Reported problems will be published after being fixed. * Other bugs and feature requests can be reported via the Ruby Issue Tracking System (https://bugs.ruby-lang.org/). Do not report security vulnerabilities via this system because it publishes the vulnerabili- ties immediately. AUTHORS Written by Keiju ISHITSUKA. UNIX August 11, 2019 IRB(1)
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | ENVIRONMENT | FILES | EXAMPLES | SEE ALSO | REPORTING BUGS | AUTHORS
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=irb&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>
