Tsallaka zuwa abun ciki
Justice Tech School

Ruby Get Started

Install Ruby with your package manager, rbenv or the Windows installer. Check with ruby -v. Run a script with ruby file.rb, or try code in irb, the interactive shell.

Example
# Terminal:
#   ruby -v
#   ruby hello.rb
puts "Hello World"

Result

Hello World

Exercise

Run a script.

 hello.rb

Quiz Test

Which command runs a Ruby file?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.