From: "Jan E." Date: 2012-06-25T06:34:20+09:00 Subject: Re: Code organization in multiple/single classes - things to consider Hi, I don't think there's much to be improved. Probably the send_xml method should get the xml by calling the my_xml method rather than through the parameter. This makes more sense and is also safer (you don't want abritrary strings to be submitted). If you're not only dealing with person data, you should write a generic class for data processing, which generates specific classes for data sets (like the Struct class in Ruby). As an example: Person = Data[:name, :age, :city] person_1 = Person.new 'Frank Miller', 23, 'Manchester' person_1.send_xml Well, I think that's all. By the way, you don't need to require 'rubygems' in Ruby 1.9. -- Posted via http://www.ruby-forum.com/.