diff --git a/array_4.rb b/array_4.rb index 39b0003..e66bcac 100644 --- a/array_4.rb +++ b/array_4.rb @@ -6,5 +6,5 @@ my_array << Time.now my_array.each do |element| -puts element + puts element end diff --git a/array_4.rb~ b/array_4.rb~ new file mode 100644 index 0000000..39b0003 --- /dev/null +++ b/array_4.rb~ @@ -0,0 +1,10 @@ +# array.rb + +my_array = Array.new +my_array.push("Something") +my_array.push 123 +my_array << Time.now + +my_array.each do |element| +puts element +end diff --git a/array_for.rb b/array_for.rb new file mode 100644 index 0000000..a3050c3 --- /dev/null +++ b/array_for.rb @@ -0,0 +1,10 @@ +# array_for.rb + +my_array = Array.new +my_array.push("Something") +my_array.push 123 +my_array << Time.now + +for element in my_array + puts element +end