module FTest::Assert

Constants

Error

Public Class Methods

inspect(object, truncate = 100) click to toggle source
# File lib/ftest/assert.rb, line 9
def self.inspect object, truncate = 100
  raw = object.inspect
  return raw if raw.size <= truncate
  "#{raw[0..truncate - 2]} …\""
end