Skip to content

Commit

Permalink
chore(ruby): minor formatting changes
Browse files Browse the repository at this point in the history
Make minor formatting changes to the `ruby` cheatsheet in order to be more consistent with other cheatsheets.
  • Loading branch information
chrisallenlane authored Nov 10, 2020
1 parent 1c713d8 commit 83a354a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ruby
Original file line number Diff line number Diff line change
Expand Up @@ -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 <port>

# Execute script file
ruby script.rb
# To execute a script file:
ruby <file>

# 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 <file>

# Specify $LOAD_PATH directory
# To specify $LOAD_PATH directory:
ruby -Idirectory
ruby -Ispec spec/test_spec.rb

0 comments on commit 83a354a

Please sign in to comment.