mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 08:57:08 +00:00
Update cheatsheets
This commit is contained in:
10
tldr/ruby
10
tldr/ruby
@@ -11,15 +11,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
@@ -29,6 +29,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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]}}`
|
||||
|
||||
Reference in New Issue
Block a user