Module: MasterView::PluginLoadTracking::ClassMethods
- Defined in:
- lib/masterview/plugin_load_tracking.rb
Instance Method Summary collapse
-
#inherited(plugin_class) ⇒ Object
called when a class inherits from this.
-
#register_class(plugin_class) ⇒ Object
register a loaded class, called from inherited and can be called manually.
Instance Method Details
#inherited(plugin_class) ⇒ Object
called when a class inherits from this
28 29 30 |
# File 'lib/masterview/plugin_load_tracking.rb', line 28 def inherited(plugin_class) self.register_class(plugin_class) end |
#register_class(plugin_class) ⇒ Object
register a loaded class, called from inherited and can be called manually.
33 34 35 36 37 38 |
# File 'lib/masterview/plugin_load_tracking.rb', line 33 def register_class(plugin_class) #ISSUE: do we really need both PluginLoadTracking.register_class #and DirectiveBase.register_directive, in addition to MasterView.register_directive??? #[DJL 04-Jul-2006] MasterView.register_directive(plugin_class) end |