Module: Logg::Machine::RedefInit
- Defined in:
- lib/logg/core.rb
Instance Method Summary collapse
Instance Method Details
#new(*args, &block) ⇒ Object
209 210 211 212 213 214 215 216 217 |
# File 'lib/logg/core.rb', line 209 def new *args, &block o = super if !o.respond_to?(NAME) class << o; self; end.send(:define_method, NAME) do @_logg_er ||= LOGGER end end o end |