Class: RSpec::Support::ObjectFormatter
- Inherits:
-
Object
- Object
- RSpec::Support::ObjectFormatter
- Defined in:
- lib/super_diff/rspec/monkey_patches.rb
Class Method Summary collapse
-
.format(value) ⇒ Object
Override to use our formatting algorithm.
Instance Method Summary collapse
-
#format(value) ⇒ Object
Override to use our formatting algorithm.
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 |