Skip to content

Instantly share code, notes, and snippets.

@jacoby
Created March 10, 2012 17:16
Show Gist options
  • Save jacoby/2012159 to your computer and use it in GitHub Desktop.
Save jacoby/2012159 to your computer and use it in GitHub Desktop.
#!/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