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:
parent
33c23c5f53
commit
decacb2076
1 changed files with 5 additions and 5 deletions
|
@ -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]}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue