Sha256: 92d6c7a318a17076f1d631813c6ea31f2007653b330b69fc414a815bf2dad9c2

Contents?: true

Size: 249 Bytes

Versions: 25

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

class Object
  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

25 entries across 25 versions & 2 rubygems

Version Path
avm-tools-0.116.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
avm-tools-0.116.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.92.1 lib/eac_ruby_utils/patches/object/debug.rb
avm-tools-0.115.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.92.0 lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.91.0 lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.90.0 lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.89.0 lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.88.0 lib/eac_ruby_utils/patches/object/debug.rb
avm-tools-0.114.2 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
avm-tools-0.114.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.87.0 lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.86.0 lib/eac_ruby_utils/patches/object/debug.rb
avm-tools-0.114.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.85.0 lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.84.0 lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.83.0 lib/eac_ruby_utils/patches/object/debug.rb
avm-tools-0.113.6 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
eac_ruby_utils-0.82.1 lib/eac_ruby_utils/patches/object/debug.rb
avm-tools-0.113.5 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb