X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=lib%2Frm%2Frm_plugin.rb;h=e2f2cfe413278bba00a1f0a572451b32fd6936a7;hb=a6ae98f0423603445b621a8eaa17443c8d590b45;hp=0c155a18f9441521d1ee3a6c9445927c19bd022a;hpb=616d9c0f3260f4d8e9bf26140fa6032c3eabca8b;p=mailshears.git diff --git a/lib/rm/rm_plugin.rb b/lib/rm/rm_plugin.rb index 0c155a1..e2f2cfe 100644 --- a/lib/rm/rm_plugin.rb +++ b/lib/rm/rm_plugin.rb @@ -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