Class: PryByebug::Breakpoints::MethodBreakpoint
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- PryByebug::Breakpoints::MethodBreakpoint
- Defined in:
- lib/pry-byebug/breakpoints.rb
Instance Method Summary collapse
-
#initialize(byebug_bp, method) ⇒ MethodBreakpoint
constructor
A new instance of MethodBreakpoint.
- #source_code ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(byebug_bp, method) ⇒ MethodBreakpoint
Returns a new instance of MethodBreakpoint.
21 22 23 24 |
# File 'lib/pry-byebug/breakpoints.rb', line 21 def initialize(byebug_bp, method) __setobj__ byebug_bp @method = method end |
Instance Method Details
#source_code ⇒ Object
26 27 28 |
# File 'lib/pry-byebug/breakpoints.rb', line 26 def source_code Pry::Code.from_method(Pry::Method.from_str(@method)) end |
#to_s ⇒ Object
30 31 32 |
# File 'lib/pry-byebug/breakpoints.rb', line 30 def to_s @method end |