From: Chad Murphy Date: 2008-04-21T06:37:38+09:00 Subject: Defining attr like methods Here is what I'm trying to do class List # Method item # Pushes an item into an array @items # Method to_s # returns elements within @items into a string end class Groceries < List item :lettuce item :potato item :ham end print Groceries.new The trouble I'm having is figuring out how to go about adding an instance variable, which is an array, and will be updated using these attr like methods (I don't know what these are called which is giving me some trouble). Is this possible to pull off? -- Posted via http://www.ruby-forum.com/.