class BinData::Tracer

:nodoc:

def initialize(io)

:nodoc:
def initialize(io)
  @trace_io = io
end

def trace(msg)

def trace(msg)
  @trace_io.puts(msg)
end

def trace_obj(obj_name, val)

def trace_obj(obj_name, val)
  if val.length > 30
    val = val.slice(0 .. 30) + "..."
  end
  trace "#{obj_name} => #{val}"
end