Sha256: d980f47c95ce5ab833481023bff9fc2f809a9b25538cf5a598c3695dbab7e5f3
Contents?: true
Size: 821 Bytes
Versions: 6
Compression:
Stored size: 821 Bytes
Contents
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(self.class.help) if key.nil? full_key = Setting.find(key) return errmsg("Unknown setting :#{key}") unless full_key puts Setting.settings[full_key.to_sym].to_s end class << self def names %w(show) end def description <<-EOD.gsub(/^ {8}/, '') show <setting> <value> Generic command for showing byebug settings. You can change them with the "set" command. EOD end def help(subcmds = []) Setting.help('show', subcmds.first) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems