Patrick Hurley wrote: > Oops I realized you might want to "discover" what classes you loaded > so something like this might be closer: > > before_classes = [] > ObjectSpace.each_object(Class) { |obj| before_classes << obj } > > base= "." > Dir.glob("#{base}/*.rb").each { |plugin| require plugin } > > new_classes = [] > ObjectSpace.each_object(Class) { |obj| > new_classes << obj unless before_classes.include?(obj) > } > > > And then you can further check the loaded classes (in new_classes > array) by using the respond_to? method (check to see if it is a Duck > :-) > > Patrick > > Thanks for the ideas, but the question isn't so much about mechanics as about design. Should the agents reside in /usr/local/lib/site_ruby/... or should they reside in /usr/local/share/clog and how do I make that directory configurable at installation time or auto-discover it.