-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Karthikeyan A K
committed
Nov 12, 2014
1 parent
2aea740
commit f60acff
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
my_array << Time.now | ||
|
||
my_array.each do |element| | ||
puts element | ||
puts element | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |