If you want a "Ruby command line" then you want irb
The command ruby is the non-command-line version. You can use that from the command line in several ways(*), but it is not a command line in itself.
As you didn't find irb, I guess you may not know about the command apropos
The word means "pertinent information about" and typing
apropos ruby
will list a number of ruby-related things, including irb.
The argument for the command man usually must match the command or whatever exactly, so
man rail
would not find a manual page, even if there was one, man rails normally would, but I believe there is no rails man-page and you have to refer to the Ruby documentation for that.
(*) The usual Unix methods, e.e.:
- As shown in the answer above.
- echo 'print "hello world\n"' | ruby
- ruby < my-ruby-prob.rb
- The 'hereis' and 'shebang (#!) methods
ruby
on a terminal?ruby
and press enter. Ruby doesn't provide a prompt, so don't be surprised if you get a blank line.irb
?