Sha256: 1f2fe6af2a84380b473900c5b72b0a00577967b88b02e615b667048f3e8e0ebe

Contents?: true

Size: 247 Bytes

Versions: 6

Compression:

Stored size: 247 Bytes

Contents

require "debug_extras/exceptions"

module Kernel
  # dump object through exception message
  def dd(dump, settings = {})
    DebugExtras::Dumper.new(dump, settings).render do |message|
      raise DebugExtras::DebugData, message
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
debug-extras-0.3.6 lib/debug_extras/core_ext/kernel.rb
debug-extras-0.3.5 lib/debug_extras/core_ext/kernel.rb
debug-extras-0.3.4 lib/debug_extras/core_ext/kernel.rb
debug-extras-0.3.3 lib/debug_extras/core_ext/kernel.rb
debug-extras-0.3.2 lib/debug_extras/core_ext/kernel.rb
debug-extras-0.3.0 lib/debug_extras/core_ext/kernel.rb