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



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

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



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

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