Class: Byebug::ListsizeSetting

Inherits:
Setting
  • Object
show all
Defined in:
lib/byebug/settings/listsize.rb

Overview

Setting to customize the number of source code lines to be displayed every time the “list” command is invoked.

Constant Summary collapse

DEFAULT =
10

Instance Attribute Summary

Attributes inherited from Setting

#value

Instance Method Summary collapse

Methods inherited from Setting

[], []=, #boolean?, find, #help, help_all, #initialize, #integer?, settings, #to_sym

Constructor Details

This class inherits a constructor from Byebug::Setting

Instance Method Details



13
14
15
# File 'lib/byebug/settings/listsize.rb', line 13

def banner
  "Set number of source lines to list by default"
end

#to_sObject



17
18
19
# File 'lib/byebug/settings/listsize.rb', line 17

def to_s
  "Number of source lines to list is #{value}\n"
end