Skip to content

Commit

Permalink
Add cheatsheet for ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
luathn committed Nov 6, 2020
1 parent 0c8e75a commit a8054c0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ruby
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

0 comments on commit a8054c0

Please sign in to comment.