Class: RSpec::Support::ObjectFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/super_diff/rspec/monkey_patches.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.format(value) ⇒ Object

Override to use our formatting algorithm



258
259
260
# File 'lib/super_diff/rspec/monkey_patches.rb', line 258

def self.format(value)
  SuperDiff::ObjectInspection.inspect(value, as_single_line: true)
end

Instance Method Details

#format(value) ⇒ Object

Override to use our formatting algorithm



263
264
265
# File 'lib/super_diff/rspec/monkey_patches.rb', line 263

def format(value)
  SuperDiff::ObjectInspection.inspect(value, as_single_line: true)
end