Hi -- On Sat, 18 Nov 2006, Suraj Kurapati wrote: > class Foo > File.open('readme.txt').readlines.each do |entry| > define_method "test_#{entry}".to_sym do You don't need to_sym there; define_method will take a string. David -- David A. Black | dblack / rubypal.com Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org