From: ahoward Date: 2002-11-20T04:30:05+09:00 Subject: Symbol usage help rubyists- given a = 42 b = 'forty-two' is it possible to do something like : %w( a b ).each do |s| puts "#{s} = #{s.intern.value}" end to output a = 42 b = forty-two obviously, the Symbol#value method does not exist, but this should be clear enough... thanks. -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================