# File lib/facets/more/promoteself.rb, line 49 def singleton_method_added( meth ) d = %{ def #{meth}(*args) #{self.name}.#{meth}(self,*args) end } self.class_eval d singleton_method_added_promoteself( meth ) if defined?(singleton_method_added_promoteself) end