Module: ClassX::Pluggable::Plugin
Child modules and classes
Module ClassX::Pluggable::Plugin::AutoRegister
Module ClassX::Pluggable::Plugin::ClassMethods
Public Instance Methods
inspect ()
# File lib/classx/pluggable/plugin.rb, line 32 32: def inspect 33: hash = self.to_hash 34: hash.delete("context") 35: "#{self.class}: #{hash.inspect}" 36: end
register ()
Abstract method for calling from context instance automatically that you should implement like followings:
def register add_event('SOME_EVENT', 'on_some_event') end def on_some_event # do something. end
# File lib/classx/pluggable/plugin.rb, line 28 28: def register 29: raise NotImprementedError 30: end