module Bio::FlatFileIndex::DEBUG
Module for output debug messages. Default setting: If $DEBUG or $VERBOSE is true, output debug messages to $stderr; Otherwise, don't output messages.
Public Class Methods
out()
click to toggle source
get current debug messeages output destination
# File lib/bio/io/flatfile/index.rb, line 424 def self.out @@out end
out=(io)
click to toggle source
Set debug messages output destination. If true is given, outputs to $stderr. If nil is given, outputs nothing. This method affects ALL of FlatFileIndex related objects/methods.
# File lib/bio/io/flatfile/index.rb, line 411 def self.out=(io) if io then @@out = io @@out = $stderr if io == true @@flag = true else @@out = nil @@flag = nil end @@out end
print(*arg)
click to toggle source
prints debug messages
# File lib/bio/io/flatfile/index.rb, line 429 def self.print(*arg) @@flag = true if $DEBUG or $VERBOSE @@out.print(*arg) if @@out and @@flag end