Method: Nanite::Log.method_missing

Defined in:
lib/nanite/log.rb

.method_missing(method_symbol, *args) ⇒ Object

Passes any other method calls on directly to the underlying Logger object created with init. If this method gets hit before a call to Nanite::Logger.init has been made, it will call Nanite::Logger.init() with no arguments.



54
55
56
57
58
59
60
61
# File 'lib/nanite/log.rb', line 54

def method_missing(method_symbol, *args)
  init unless @logger
  if args.length > 0
    @logger.send(method_symbol, *args)
  else
    @logger.send(method_symbol)
  end
end