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/.