From: Aaron Smith Date: 2007-08-27T13:45:22+09:00 Subject: Override object initialization, add a filepath attribute. Is it possible to override initializations so that anytime an object is created there is a "filepath" attribute put on it? maybe? class Object def initialize super class << self attr_accessor :filepath end self.filepath = $0 end end See what i'm going for? Any ideas on how to get away with this? Thanks. -- Posted via http://www.ruby-forum.com/.