#---------------------------------------------------------------# # # # (C) Copyright Rubysophic Inc. 2007-2008 # # All rights reserved. # # # # Use, duplication or disclosure of the code is not permitted # # unless licensed. # # Dynamic Application Discovery # # # # Last Updated: 7/09/08 # #---------------------------------------------------------------# # # # Dynamic Application Discovery lists out the name of a method # # as it is being added to the ruby process. # # # #---------------------------------------------------------------# module RubyRunDad__ # perform dynamic application discovery if requested by printing # out the class and method name of the method being added def get_dad(type, klass, id) print_method_added(type, klass, id) if $rubyrun_dad end private # print the dynamic method added message def print_method_added(type, obj, id) if type == 'i' $rubyrun_logger.info "#{obj.to_s}.#{id.id2name} added as an instance method" else $rubyrun_logger.info "#{obj.to_s}.#{id.id2name} added as an singleton method" end end end