Sha256: 02aa41da8774bea44f02cb13411ce5a2d78fbfdb1fc362c2c8281adeb59755db

Contents?: true

Size: 318 Bytes

Versions: 45

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

class Object
  def pretty_debug
    STDERR.write(pretty_inspect)

    self
  end

  def print_debug
    STDERR.write(to_debug + "\n")

    self
  end

  def to_debug
    "|#{::Object.instance_method(:to_s).bind(self).call}|#{self}|"
  end

  def raise_debug
    raise to_debug
  end
end

Version data entries

45 entries across 45 versions & 3 rubygems

Version Path
eac_ruby_utils-0.99.0 lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.23.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.22.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.21.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.20.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.19.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.18.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.17.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.16.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.98.0 lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.16.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.15.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.14.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.97.0 lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.13.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.96.1 lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.12.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.11.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_tools-0.11.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.96.0 lib/eac_ruby_utils/patches/object/debug.rb