Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Test
  def self.test(strings)
    strings.each { |s| puts s }
  end
end

class StringCollection
  def initialize
    @strings = [ 'foo', 'bar', 'baz' ]
    Test.test(@strings)
  end
end

sc = StringCollection.new