Module: Observed::Pluggable
- Included in:
- Observer, Reporter, Translator
- Defined in:
- lib/observed/pluggable.rb
Overview
Indicates that the class is pluggable (or extensible or a extension point). “pluggable” means that the class included this module will be the outlet in where Observed plug-ins are plugged.
class Reader
include Pluggable
end class FooReader < Reader; end class BarReader < Reader; end Reader.plugins #=> [FooReader, BarReader]
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
39 40 41 |
# File 'lib/observed/pluggable.rb', line 39 def included(klass) klass.extend ClassMethods end |