LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

irb

interactive Ruby shell

TLDR

Start interactive Ruby
$ irb
copy
Start without prompt
$ irb --noprompt
copy
Load file before starting
$ irb -r [library]
copy
Evaluate expression
$ irb -e "[puts 'hello']"
copy
Start with specific Ruby
$ irb --version
copy
Simple prompt
$ irb --simple-prompt
copy

SYNOPSIS

irb [options] [file]

DESCRIPTION

irb is the Interactive Ruby shell. It provides a REPL for evaluating Ruby expressions and exploring code.The shell supports tab completion, history, and multi-line input. It's the standard tool for Ruby experimentation.

PARAMETERS

-r LIBRARY

Require library before starting.
-e EXPR
Evaluate expression.
--noprompt
Suppress prompt.
--simple-prompt
Use simple prompt.
--inf-ruby-mode
Emacs inf-ruby compatibility.
-I PATH
Add to load path.
--help
Display help information.

INSTALL

sudo apt install ruby
copy
sudo dnf install ruby
copy
sudo pacman -S ruby
copy
sudo apk add ruby
copy
sudo zypper install ruby
copy
brew install ruby
copy
nix profile install nixpkgs#ruby
copy

CAVEATS

Requires Ruby installed. No persistent state. Consider pry for advanced features.

HISTORY

irb has been part of Ruby since early versions, created by Keiju Ishitsuka as the standard Ruby REPL.

SEE ALSO

ruby(1), gem(1), bundle(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid