From 83a354a92621412293528ec1bdcf758f4b5e05a9 Mon Sep 17 00:00:00 2001 From: Chris Allen Lane Date: Mon, 9 Nov 2020 19:14:07 -0500 Subject: [PATCH] chore(ruby): minor formatting changes Make minor formatting changes to the `ruby` cheatsheet in order to be more consistent with other cheatsheets. --- ruby | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ruby b/ruby index 86b1c29..fd429df 100644 --- a/ruby +++ b/ruby @@ -2,18 +2,18 @@ # Main page: https://www.ruby-lang.org/ # Help and documentation: https://ruby-doc.org/ -# Serve the current directory -ruby -run -e httpd . -p 5000 +# To serve the current directory: +ruby -run -e httpd . -p -# Execute script file -ruby script.rb +# To execute a script file: +ruby -# Execute one line of script +# To execute one line of script: ruby -e 'command' -# Check script file syntax -ruby -c script.rb +# To check script file syntax: +ruby -c -# Specify $LOAD_PATH directory +# To specify $LOAD_PATH directory: ruby -Idirectory ruby -Ispec spec/test_spec.rb