Created
March 10, 2012 17:16
-
-
Save jacoby/2012159 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env ruby | |
class FooBar | |
include Enumerable | |
@array_out = Array.new | |
def initialize( array1 , array2 ) | |
if array1 != [] and array2 != [] | |
for i in array1 | |
for j in array2 | |
k = [i,j].join("|") | |
puts k | |
end | |
end | |
end | |
end | |
end | |
x = FooBar.new( (1..3) , [4,6] ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment