From: Abhishek Singh Date: 2009-07-29T19:24:48+09:00 Subject: Re: instance_eval def method_missing(method_name,*args) for @@y in(0..@@e-1) do if ("#{method_name}"==@@a[0][@@y]) @@index=@@y break else if (@@y==@@e-1) puts "This method (#{method_name})does not belong to any field value .. !!" end end end instance_eval " def #{method_name}; puts '#{@@a[@@x][@@index]}'; end" end and when i want to access this newly defined method i'm doing following:- ro1=RecordOne.find("subject","algorithm") ro1.author ro1.author i'm not able to get value at single method call...:( Attachments: http://www.ruby-forum.com/attachment/3910/NewRecord.rb -- Posted via http://www.ruby-forum.com/.