From: anne001 Date: 2006-03-26T21:28:54+09:00 Subject: Re: meaning of *array here is an example using * http://www.devsource.com/article2/0,1895,1928562,00.asp see the text for explanation of what it does data = File.new(file_name) names = data.gets.chomp.split(",") # an array of strings klass.class_eval do attr_accessor *names define_method(:initialize) do |*values| names.each_with_index do |name,i| instance_variable_set("@"+name, values[i]) end end # more... end