mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
ruby: add French translation, update page (#10817)
* ruby: add French translation, update page --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
ba681f2d0b
commit
3cf7a89a0e
2 changed files with 33 additions and 0 deletions
29
pages.fr/common/ruby.md
Normal file
29
pages.fr/common/ruby.md
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# ruby
|
||||||
|
|
||||||
|
> Interpréteur du langage de programmation Ruby.
|
||||||
|
> Voir aussi : `gem`, `bundler`, `rake`, `irb`.
|
||||||
|
> Plus d'informations : <https://www.ruby-lang.org>.
|
||||||
|
|
||||||
|
- Exécute un script Ruby :
|
||||||
|
|
||||||
|
`ruby {{script.rb}}`
|
||||||
|
|
||||||
|
- Exécute une seule commande Ruby dans la ligne de commande :
|
||||||
|
|
||||||
|
`ruby -e {{commande}}`
|
||||||
|
|
||||||
|
- Vérifie les erreurs de syntaxe d'un script Ruby donné :
|
||||||
|
|
||||||
|
`ruby -c {{script.rb}}`
|
||||||
|
|
||||||
|
- Démarre le serveur HTTP intégré sur le port 8080 dans le répertoire actuel :
|
||||||
|
|
||||||
|
`ruby -run -e httpd`
|
||||||
|
|
||||||
|
- Exécute localement un binaire Ruby sans installer la bibliothèque requise dont il dépend :
|
||||||
|
|
||||||
|
`ruby -I {{chemin/vers/dossier_bibliothèque}} -r {{nom_chargement_bibliothèque}} {{chemin/vers/dossier_bin/nom_bin}}`
|
||||||
|
|
||||||
|
- Affiche la version de Ruby utilisée :
|
||||||
|
|
||||||
|
`ruby -v`
|
|
@ -20,6 +20,10 @@
|
||||||
|
|
||||||
`ruby -run -e httpd`
|
`ruby -run -e httpd`
|
||||||
|
|
||||||
|
- Locally execute a Ruby binary without installing the required library it depends on:
|
||||||
|
|
||||||
|
`ruby -I {{path/to/library_folder}} -r {{library_require_name}} {{path/to/bin_folder/bin_name}}`
|
||||||
|
|
||||||
- Show the version of Ruby you are using:
|
- Show the version of Ruby you are using:
|
||||||
|
|
||||||
`ruby -v`
|
`ruby -v`
|
||||||
|
|
Loading…
Add table
Reference in a new issue