Class: DLogger::Extension
- Inherits:
-
Object
- Object
- DLogger::Extension
- Defined in:
- lib/dlogger/extension.rb
Class Method Summary collapse
-
.method_added(m) ⇒ Object
Called by ruby each time a new method is added to this class or any of its children.
-
.properties ⇒ Object
Class attribute, each child class with have its own.
Class Method Details
.method_added(m) ⇒ Object
Called by ruby each time a new method is added to this class or any of its children
17 18 19 20 21 |
# File 'lib/dlogger/extension.rb', line 17 def self.method_added(m) unless m == :initialize self.properties << m end end |
.properties ⇒ Object
Class attribute, each child class with have its own.
7 8 9 |
# File 'lib/dlogger/extension.rb', line 7 def self.properties @properties ||= [] end |