Module: AwesomePrint::Logger
- Defined in:
- lib/awesome_print/core_ext/logger.rb
Instance Method Summary collapse
-
#ap(object, level = nil) ⇒ Object
Add ap method to logger ——————————————————————————.
Instance Method Details
#ap(object, level = nil) ⇒ Object
Add ap method to logger
11 12 13 14 15 |
# File 'lib/awesome_print/core_ext/logger.rb', line 11 def ap(object, level = nil) level ||= AwesomePrint.defaults[:log_level] if AwesomePrint.defaults level ||= :debug send level, object.ai end |