Skip to content

Commit

Permalink
added array_for.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthikeyan A K committed Nov 12, 2014
1 parent 2aea740 commit f60acff
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion array_4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
my_array << Time.now

my_array.each do |element|
puts element
puts element
end
10 changes: 10 additions & 0 deletions array_4.rb~
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions array_for.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f60acff

Please sign in to comment.