1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-05 10:33:31 +02:00

ruby: update page (#17914)

This commit is contained in:
Dylan 2025-08-30 22:30:56 +00:00 committed by GitHub
parent 33c23c5f53
commit decacb2076
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,15 +6,15 @@
- Execute a Ruby script:
`ruby {{script.rb}}`
`ruby {{path/to/script.rb}}`
- Execute a single Ruby command in the command-line:
`ruby -e {{command}}`
`ruby -e "{{command}}"`
- Check for syntax errors on a given Ruby script:
`ruby -c {{script.rb}}`
`ruby -c {{path/to/script.rb}}`
- Start the built-in HTTP server on port 8080 in the current directory:
@ -24,6 +24,6 @@
`ruby -I {{path/to/library_folder}} -r {{library_require_name}} {{path/to/bin_folder/bin_name}}`
- Display Ruby version:
- Display version:
`ruby -v`
`ruby {{[-v|--version]}}`