lib/byebug/commands/undisplay.rb in byebug-4.0.5 vs lib/byebug/commands/undisplay.rb in byebug-5.0.0

- old
+ new

@@ -1,12 +1,15 @@ require 'byebug/command' +require 'byebug/helpers/parse' module Byebug # # Remove expressions from display list. # class UndisplayCommand < Command + include Helpers::ParseHelper + self.allow_in_post_mortem = false def regexp /^\s* undisp(?:lay)? (?:\s+(\S+))? \s*$/x end @@ -26,24 +29,18 @@ @state.display.each { |d| d[0] = false } end end - class << self - def names - %w(undisplay) - end + def description + <<-EOD + undisp[lay][ nnn] - def description - prettify <<-EOD - undisp[lay][ nnn] - - Cancel some expressions to be displayed when program stops. Arguments - are the code numbers of the expressions to stop displaying. No - argument means cancel all automatic-display expressions. "delete - display" has the same effect as this command. Do "info display" to see - the current list of code numbers. - EOD - end + Cancel some expressions to be displayed when program stops. Arguments + are the code numbers of the expressions to stop displaying. No argument + means cancel all automatic-display expressions. "delete display" has the + same effect as this command. Do "info display" to see the current list + of code numbers. + EOD end end end