X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Frm%2Frm_plugin.rb;h=e2f2cfe413278bba00a1f0a572451b32fd6936a7;hp=0c155a18f9441521d1ee3a6c9445927c19bd022a;hb=a6ae98f0423603445b621a8eaa17443c8d590b45;hpb=ec3c9099a29f40d95f055ea0f7fb25a99d913de3 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