Class: DLogger::Extension

Inherits:
Object
  • Object
show all
Defined in:
lib/dlogger/extension.rb

Class Method Summary collapse

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

.propertiesObject

Class attribute, each child class with have its own.



7
8
9
# File 'lib/dlogger/extension.rb', line 7

def self.properties
  @properties ||= []
end