From decacb2076c8cf5e2f6162ca5f7264875c1ee68d Mon Sep 17 00:00:00 2001 From: Dylan <145150333+dmmqz@users.noreply.github.com> Date: Sat, 30 Aug 2025 22:30:56 +0000 Subject: [PATCH] ruby: update page (#17914) --- pages/common/ruby.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/common/ruby.md b/pages/common/ruby.md index 721b1b9aae..c86717692d 100644 --- a/pages/common/ruby.md +++ b/pages/common/ruby.md @@ -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]}}`