2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-05 12:00:16 +00:00

Merge pull request #90 from roryokane/patch-1

Fix indentation in Ruby cheat sheet
This commit is contained in:
Igor Chubin 2020-02-11 19:20:56 +01:00 committed by GitHub
commit c9c425d37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.