Class: PryByebug::Breakpoints::FileBreakpoint

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

Instance Method Summary collapse

Instance Method Details

#source_codeObject



11
12
13
# File 'lib/pry-byebug/breakpoints.rb', line 11

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

#to_sObject



15
16
17
# File 'lib/pry-byebug/breakpoints.rb', line 15

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