Revisting Ruby – Array.each
I’ve been in love with Ruby for long now – and its only obvious that I should get serious about it. Hence, I’ve decided to go through Programming Ruby 1.9 – a chapter a day. Understanding Array.each and blocks #!/usr/bin/env ruby class MyObject attr_accessor :data def initialize @data = [...]