module Hydra::Trace::InstanceMethods

Public Instance Methods

trace(str) click to toggle source

Trace some output with the class's prefix and a newline. Checks to ensure we're running verbosely.

# File lib/hydra/trace.rb, line 18
def trace(str)
  $stdout.write "#{Time.now.to_f} #{self.class._traceable_prefix}| #{str}\n" if @verbose
end