Fix indentation in Ruby cheat sheet

pull/90/head
Rory O’Kane 5 years ago committed by GitHub
parent 44d15abd8d
commit 1556ce6b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,8 +9,8 @@ ruby -e 'puts "Hello world"'
# The -n switch acts as though the code you pass to Ruby was wrapped in the following:
# while gets
# # code here
# end
# # code here
# end
ruby -ne 'puts $_' file.txt
# Beware that with the -n switch $_ contains newline character in the end.

Loading…
Cancel
Save