Sha256: 4a6e4a369ab3d6a098b994b6069b9dd5d767f1c382b1bc1e9e7c7b79802976f6
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 Bytes
Contents
require 'byebug/command' module Byebug # # Show byebug settings. # class ShowCommand < Command self.allow_in_control = true def regexp /^\s* show (?:\s+(?<setting>\w+))? \s*$/x end def execute key = @match[:setting] return puts(help) unless key setting = Setting.find(key) return errmsg(pr('show.errors.unknown_setting', key: key)) unless setting puts Setting.settings[setting.to_sym] end def help description + Setting.help_all end def description <<-EOD show <setting> <value> Generic command for showing byebug settings. You can change them with the "set" command. EOD end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
sc_core-0.0.7 | test/dummy/vendor/bundle/ruby/2.2.0/gems/byebug-5.0.0/lib/byebug/commands/show.rb |
byebug-5.0.0 | lib/byebug/commands/show.rb |