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, help_all, #initialize, #integer?, settings, #to_sym

Methods included from StringFunctions

#camelize, #prettify

Constructor Details

This class inherits a constructor from Byebug::Setting

Instance Method Details


11
12
13
# File 'lib/byebug/settings/listsize.rb', line 11

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

#to_sObject


15
16
17
# File 'lib/byebug/settings/listsize.rb', line 15

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