Procs in an array, awesome.

1
2
3
4
5
6
>> a = [Proc.new{ puts 1 }, Proc.new{ puts 2}, Proc.new{ puts 3} ]
=> [#<Proc:0x005ed47c@(irb):1>, #<Proc:0x005ed3c8@(irb):1>, #<Proc:0x005ed314@(irb):1>]
>> a[0].call()
1
=> nil
>>