Sha256: 65ac58122fb8740a972b15ec83e6fe14a5974233f73d73579e90f4ae9a8ce5de

Contents?: true

Size: 441 Bytes

Versions: 36

Compression:

Stored size: 441 Bytes

Contents

require 'byebug/setting'
require 'byebug/commands/irb'

module Byebug
  #
  # Setting for automatically invoking IRB on every stop.
  #
  class AutoirbSetting < Setting
    DEFAULT = 0

    def initialize
      IrbCommand.always_run = DEFAULT
    end

    def banner
      'Invoke IRB on every stop'
    end

    def value=(v)
      IrbCommand.always_run = v ? 1 : 0
    end

    def value
      IrbCommand.always_run == 1
    end
  end
end

Version data entries

36 entries across 34 versions & 5 rubygems

Version Path
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/byebug-9.1.0/lib/byebug/settings/autoirb.rb
tdiary-5.0.6 vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/autoirb.rb
byebug-9.1.0 lib/byebug/settings/autoirb.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/byebug-9.0.6/lib/byebug/settings/autoirb.rb
tdiary-5.0.5 vendor/bundle/gems/byebug-9.0.6/lib/byebug/settings/autoirb.rb
tdiary-5.0.4 vendor/bundle/gems/byebug-9.0.6/lib/byebug/settings/autoirb.rb
byebug-9.0.6 lib/byebug/settings/autoirb.rb
byebug-9.0.5 lib/byebug/settings/autoirb.rb
byebug-9.0.4 lib/byebug/settings/autoirb.rb
byebug-9.0.3 lib/byebug/settings/autoirb.rb
byebug-9.0.2 lib/byebug/settings/autoirb.rb
byebug-9.0.1 lib/byebug/settings/autoirb.rb
byebug-9.0.0 lib/byebug/settings/autoirb.rb
byebug-8.2.5 lib/byebug/settings/autoirb.rb
byebug-8.2.4 lib/byebug/settings/autoirb.rb
byebug-8.2.3 lib/byebug/settings/autoirb.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/byebug-4.0.5/lib/byebug/settings/autoirb.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/byebug-4.0.5/lib/byebug/settings/autoirb.rb
byebug-8.2.2 lib/byebug/settings/autoirb.rb
byebug-8.2.1 lib/byebug/settings/autoirb.rb