Method: Logg::Dispatcher#method_missing
- Defined in:
- lib/logg/core.rb
#method_missing(meth, *args, &block) ⇒ Object
The Dispatcher default behavior relies on #method_missing. It sets both the message and a namespace, then auto-sends the order to output.
85 86 87 88 89 |
# File 'lib/logg/core.rb', line 85 def method_missing(meth, *args, &block) @namespace = meth.to_s @message = (args.first.to_s == 'debug') ? nil : args.first.to_s self.send :output! end |