forked from cheat/cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |