Module: Utils::Reporting::Console

Instance Method Summary collapse

Instance Method Details

#jot(message, debug: false) ⇒ Object

Print to stdout with support of debug conditions This is especially helpfull if the analysis fails or is too slow



6
7
8
9
10
# File 'lib/crypto-toolbox/utils/reporting/console.rb', line 6

def jot(message, debug: false)
  if debug == false || ENV["DEBUG_ANALYSIS"]
    puts message
  end
end


11
12
13
# File 'lib/crypto-toolbox/utils/reporting/console.rb', line 11

def print_delimiter_line
  puts "=====================================================================" 
end