class Test

Public Instance Methods

each() { |i| ... } click to toggle source
# File lib/logstash/test.rb, line 4
def each
  arr = [1, 2, 3]

  arr.each do |i|
    yield i
  end

  puts 'end each'
end