Class: Pry::Byebug::Breakpoints::FileBreakpoint

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/pry/byebug/breakpoints.rb

Overview

Breakpoint in a file:line location

Instance Method Summary collapse

Instance Method Details

#source_codeObject


17
18
19
# File 'lib/pry/byebug/breakpoints.rb', line 17

def source_code
  Pry::Code.from_file(source).around(pos, 3).with_marker(pos)
end

#to_sObject


21
22
23
# File 'lib/pry/byebug/breakpoints.rb', line 21

def to_s
  "#{source} @ #{pos}"
end