From: Jagadeesh Date: 2010-01-11T16:00:05+09:00 Subject: Re: Help Hi Jeff, > > data = Hash.new do |h,k| h[k] = [] end Another interesting question is, what is standard way of writing one liner code and multiliner I read somewhere like oneliner should be written using {} and do ... end for multiliner For example: one liner: data = Hash.new { |h,k| h[k] = [] } and multiliner: prs.each do |line| (pr, pr_scope, state) = line.split(/,/) data[pr] << Hash[state, pr_scope] end