Class: String

Inherits:
Object show all
Defined in:
lib/unified_matchers/helpers.rb

Overview

class ::Pathname

Instance Method Summary collapse

Instance Method Details

#inspect_for_unified_matchersObject



29
30
31
32
33
34
35
36
# File 'lib/unified_matchers/helpers.rb', line 29

def inspect_for_unified_matchers
  l = length
  if l > 20
    self[0..9].inspect + "..." + self[l-10..l-1].inspect
  else
    inspect
  end
end