Module: Suma::Utils
- Defined in:
- lib/suma/utils.rb
Class Attribute Summary collapse
Class Method Summary collapse
Class Attribute Details
.output ⇒ Object
8 9 10 |
# File 'lib/suma/utils.rb', line 8 def output @output ||= $stderr end |
Class Method Details
.log(message, level: :info) ⇒ Object
12 13 14 15 16 |
# File 'lib/suma/utils.rb', line 12 def log(, level: :info) return if level == :debug && !ENV["SUMA_DEBUG"] output.puts "[suma] #{}" end |