Method: HyperTrace.safe_i

Defined in:
lib/hyper_trace/hyper_trace.rb

.safe_i(obj) ⇒ Object



173
174
175
176
177
178
179
180
181
# File 'lib/hyper_trace/hyper_trace.rb', line 173

def safe_i(obj)
  "#{obj.inspect}"
rescue Exception
  begin
    "native: #{`JSON.stringify(obj)`}"
  rescue Exception
    safe_s(obj)
  end
end