]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/rm/rm_plugin.rb
In the middle of refactoring the binary to accept three modes of execution. Does...
[mailshears.git] / lib / rm / rm_plugin.rb
index 0c155a18f9441521d1ee3a6c9445927c19bd022a..e2f2cfe413278bba00a1f0a572451b32fd6936a7 100644 (file)
@@ -3,6 +3,18 @@ module RmPlugin
   # Plugins for the removal of accounts.
   #
 
+  def RmPlugin.included(c)
+    # Callback, called whenever another class or module includes this
+    # one. The parameter given is the name of the class or module
+    # that included us.
+    @includers ||= []
+    @includers << c
+  end
+
+  def RmPlugin.includers
+    return @includers
+  end
+
   def delete_domain(domain)
     # Delete the given domain.
     raise NotImplementedError