From b8e8f97ffb58988a6fe5a341b391297716305bf3 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 8 Oct 2018 12:15:57 +0200 Subject: [PATCH] removed empty lines --- sheets/_ruby/control_flow | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sheets/_ruby/control_flow b/sheets/_ruby/control_flow index 6ad298c..5e8be21 100644 --- a/sheets/_ruby/control_flow +++ b/sheets/_ruby/control_flow @@ -11,10 +11,10 @@ end # Using .each looks neater and it allows for powerful chaining # of enumerable types. - +# # This example maps the array to [2, 4, 6] and prints each element. [1, 2, 3].map { |i| i * 2 }.each { |i| puts i } - +# # Another kind of loop with specified iterations 10.times { puts 'test' } 10.times do |n| @@ -22,7 +22,6 @@ end end # Conditionals - if 2 * 4 == 8 puts 'thank goodness' else