Installing Ruby
Install a current Ruby
On macOS and Linux, use a version manager such as rbenv or asdf, or your package manager. On Windows, RubyInstaller is a common choice.
Check the version
Open a new terminal after installing.
ruby --version
gem --version
Open IRB
IRB is an interactive prompt for trying short snippets.
irb
>> 2 + 3
=> 5
>> exit
Install tips
- Prefer a version manager when you juggle multiple projects
- Reopen the terminal if commands are not found
- Bundler often ships with modern Ruby; check with
bundle --version - Editors with Ruby plugins make learning smoother
Comments
One comment per signed-in account. Comments are saved with this page’s URL.