From: "Peña, Botp" Date: 2006-08-11T15:46:41+09:00 Subject: Re: Simple question regarding hashes fr x1: # can you define the value of a hash based on an iteration, or an if # statement etc.. if it's code that you want, then Proc can do anything irb(main):003:0> hash = {"foo" =>Proc.new {1+1 == 3 ? "yes" : "no"}} => {"foo"=>#} irb(main):005:0> hash["foo"] => # irb(main):006:0> hash["foo"].call => "no" is that what you want? kind regards -botp