diff 1-Ruby/arrays.rb @ 16:8d46064c9afc

Be a nice Ruby user and follow block convention for do/end vs {}
author IBBoard <dev@ibboard.co.uk>
date Tue, 03 Jan 2017 20:38:45 +0000
parents 9aa1eba404f0
children
line wrap: on
line diff
--- a/1-Ruby/arrays.rb	Tue Jan 03 20:36:16 2017 +0000
+++ b/1-Ruby/arrays.rb	Tue Jan 03 20:38:45 2017 +0000
@@ -14,11 +14,11 @@
 puts "as is assignment to an array! [1].methods.include?(:[]=) = #{[1].methods.include?(:[]=)}"
 puts ""
 puts "All funky non-ASCII methods for arrays:"
-[].methods.each { |method| 
+[].methods.each do |method| 
 	if method !~ /[a-z]/
 		puts method
 	end
-}
+end
 
 puts ""
 puts "Arrays are also stacks with push() and pop() methods!"