From: dave Date: 2005-05-16T05:00:59+09:00 Subject: help about yaml/eval code ddir = ENV['DOCUMENT_ROOT'] + '/data' Find.find(ddir){|f| if (f =~ /.yml$/) # has yml extention eval "#{File.basename(f.delete('.yml'))} = YAML.load(File.new(f))" else next end } I serched on ruby-talk but i did not find any solution. How this code can be written (or re-written)? tnx. -- >here are more things in heaven and earth, horatio, than are dreamt of in your philosophy.