From: Sven Schott Date: 2004-05-28T12:46:57+09:00 Subject: (Newbie question) Subclasses Hello all, I just had a question with regards to subclasses. At the moment, I am writing a simple class to extend Array for my own silly purposes. However, I am not sure how to access the data inside the class from my extension. Here's an example of what I wrote(not the actual code): class SuperDuperArray < Array def export self.each { |x| puts "Export: #{x}" } end end Is self the best way to access the data/stuff/whatever itself? This works fine but I don't know if I am just being a dunce or if there is a better(read Ruby) way of doing this. Sorry for the stupid question. Sven Schott