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
byebug-8.2.0 lib/byebug/settings/autoirb.rb
byebug-8.1.0 lib/byebug/settings/autoirb.rb
byebug-8.0.1 lib/byebug/settings/autoirb.rb
byebug-8.0.0 lib/byebug/settings/autoirb.rb
byebug-7.0.0 lib/byebug/settings/autoirb.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/byebug-5.0.0/lib/byebug/settings/autoirb.rb
byebug-6.0.2 lib/byebug/settings/autoirb.rb
byebug-6.0.1 lib/byebug/settings/autoirb.rb
byebug-6.0.0 lib/byebug/settings/autoirb.rb
byebug-5.0.0 lib/byebug/settings/autoirb.rb
byebug-4.0.5 lib/byebug/settings/autoirb.rb
byebug-4.0.4 lib/byebug/settings/autoirb.rb
byebug-4.0.3 lib/byebug/settings/autoirb.rb
byebug-4.0.2 lib/byebug/settings/autoirb.rb
byebug-4.0.1 lib/byebug/settings/autoirb.rb
byebug-4.0.0 lib/byebug/settings/autoirb.rb