Class: DamageControl::Publisher::Base
- Inherits:
-
Object
- Object
- DamageControl::Publisher::Base
- Defined in:
- lib/damagecontrol/publisher/base.rb
Overview
Base class for publishers. Subclasses must extend this class and call register self.
Direct Known Subclasses
AmbientOrb, BuildDuration, Email, Execute, Growl, Irc, Jabber, X10Cm11A, X10Cm17A, Yahoo
Constant Summary collapse
- @@classes =
[]
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
Class Method Summary collapse
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
10 11 12 |
# File 'lib/damagecontrol/publisher/base.rb', line 10 def enabled @enabled end |
Class Method Details
.classes ⇒ Object
16 17 18 |
# File 'lib/damagecontrol/publisher/base.rb', line 16 def self.classes @@classes end |
.register(cls) ⇒ Object
13 14 15 |
# File 'lib/damagecontrol/publisher/base.rb', line 13 def self.register(cls) @@classes << cls unless @@classes.index(cls) end |