diff --git a/ruby b/ruby new file mode 100644 index 0000000..86b1c29 --- /dev/null +++ b/ruby @@ -0,0 +1,19 @@ +# Ruby - Interpreted object-oriented scripting language +# Main page: https://www.ruby-lang.org/ +# Help and documentation: https://ruby-doc.org/ + +# Serve the current directory +ruby -run -e httpd . -p 5000 + +# Execute script file +ruby script.rb + +# Execute one line of script +ruby -e 'command' + +# Check script file syntax +ruby -c script.rb + +# Specify $LOAD_PATH directory +ruby -Idirectory +ruby -Ispec spec/test_spec.rb