1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/ruby.md
Marvin Johanning 9d3e9c8109
Change wording
Changed the wording of an explanation
2017-11-14 19:58:57 +01:00

348 B

ruby

Ruby programming language interpreter.

  • Open an Interactive Ruby Shell (REPL):

irb

  • Execute a Ruby script:

ruby {{script.rb}}

  • Execute a single command in the command line:

ruby -e {{command}}

  • Check for syntax errors on a given Ruby script:

ruby -c {{script.rb}}

  • Show the version of Ruby you are using:

ruby -v