Module: MasterView::PluginLoadTracking
- Included in:
- DirectiveBaseOld
- Defined in:
- lib/masterview/plugin_load_tracking.rb
Overview
Mixin for directive implementation classes which automatically registers a directive implementation class in the MasterView directives registry.
Subclasses of MasterView::DirectiveBase inherit this mechanism and will be registered automatically without additional action on the part of the class developer.
If you are implementing a directive without subclassing MasterView::DirectiveBase, mix this module into your directive class by using the standard Ruby include
statement.
class FooPluginBase
include PluginLoadTracking
end
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(other_module) ⇒ Object
42 43 44 45 46 |
# File 'lib/masterview/plugin_load_tracking.rb', line 42 def self::included(other_module) other_module.module_eval{ include InstanceMethods } other_module.extend ClassMethods other_module end |