Module: Nicetest::SuperdiffPlugin::Helpers

Extended by:
Helpers
Included in:
AssertIncludesMessage, Helpers
Defined in:
lib/minitest/superdiff_plugin.rb

Instance Method Summary collapse

Instance Method Details

#inspect_styled(obj, style, prefix: nil) ⇒ Object



25
26
27
28
# File 'lib/minitest/superdiff_plugin.rb', line 25

def inspect_styled(obj, style, prefix: nil)
  obj = SuperDiff.inspect_object(obj, as_lines: false)
  SuperDiff::Core::Helpers.style(style, "#{prefix}#{obj}")
end