Sha256: 19f38937602160ab9ffbde309665432e77bec8a8ea7ebb65593b50bf3b7c771e

Contents?: true

Size: 261 Bytes

Versions: 4

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true

##
# Works in a similar way as `p`, but for `byebug`.
# @see https://ruby-doc.org/core-2.7.0/Kernel.html#method-i-p
#
def b(*args)
  require "byebug"
  require "byebug/core"

  ::Byebug.attach

  args.one? ? args.first : args
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/dependencies/extractions/b.rb
convenient_service-0.19.0 lib/convenient_service/dependencies/extractions/b.rb
convenient_service-0.18.0 lib/convenient_service/dependencies/extractions/b.rb
convenient_service-0.17.0 lib/convenient_service/dependencies/extractions/b.rb