From: Daniel Schierbeck Date: 2006-05-23T22:46:51+09:00 Subject: Re: I call Ducktype Violation on #to_proc! :) transfire@gmail.com wrote: > P.S. Barring proof that there is no real usecase for it, I'll make the > Hash#to_proc method available in the upcoming version of Facets. Something like this, perhaps? :P class Hash def to_proc proc{|obj| each{|key, value| obj.send("#{key}=", value)}} end end (I know I'm annoying...)