From: Florian Gross Date: 2004-12-09T22:52:28+09:00 Subject: Re: binding question Brian Schr�der wrote: > labels = %w[one two three four five].inject({}) { | result, name | > result[name] = TkLabel.new(:text => name, :bg => 'white') do > pack(:side => :top) > end > result > } I'm always a bit skeptic about using .inject with in-place operations -- it seems to defy its purpose. Sure, it makes code a bit shorter, but is it really worth that? I'm not certain.