From 1556ce6b1f10327bb072e3797627c0df34de76ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rory=20O=E2=80=99Kane?= Date: Sat, 25 Jan 2020 00:04:13 -0500 Subject: [PATCH] Fix indentation in Ruby cheat sheet --- sheets/ruby | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sheets/ruby b/sheets/ruby index c6dd248..848498e 100644 --- a/sheets/ruby +++ b/sheets/ruby @@ -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.