Module: Sfn::Utils::Debug::Output
- Defined in:
- lib/sfn/utils/debug.rb
Overview
Output helpers
Instance Method Summary collapse
-
#debug(msg) ⇒ Object
Write debug message.
Instance Method Details
#debug(msg) ⇒ Object
Write debug message
12 13 14 15 16 |
# File 'lib/sfn/utils/debug.rb', line 12 def debug(msg) if ENV["DEBUG"] || (respond_to?(:config) && config[:debug]) puts "<sfn - debug>: #{msg}" end end |