Other possible solution I can come up with is to use "define_method" or "class_eval" to create methods on the lines of attr_accessor. -- Anurag Priyam, 2nd Year Undergraduate, Department of Mechanical Engineering, IIT Kharagpur. +91-9775550642