Module: Arrow::Loggable
- Included in:
- AcceptParam, AppletRegistry, AppletTestCase, Cache, FormValidator, Object, Path, Service
- Defined in:
- lib/arrow/mixins.rb
Overview
A mixin that adds a #log method to including classes that calls Arrow::Logger with the class of the receiving object.
Usage
require "arrow/mixins" class MyClass include Arrow::Loggable def some_method self.log.debug "A debugging message" end end
Instance Method Summary
-
- (Object) log
protected
Return the Arrow::Logger object for the receiving class.
Instance Method Details
- (Object) log (protected)
Return the Arrow::Logger object for the receiving class.
416 417 418 |
# File 'lib/arrow/mixins.rb', line 416 def log Arrow::Logger[ self.class ] end |