@@ -5,13 +5,13 @@ module FrameHelpers
55 # @return [PryStackExplorer::FrameManager] The active frame manager for
66 # the current `Pry` instance.
77 def frame_manager
8- PryStackExplorer . frame_manager ( _pry_ )
8+ PryStackExplorer . frame_manager ( pry_instance )
99 end
1010
1111 # @return [Array<PryStackExplorer::FrameManager>] All the frame
1212 # managers for the current `Pry` instance.
1313 def frame_managers
14- PryStackExplorer . frame_managers ( _pry_ )
14+ PryStackExplorer . frame_managers ( pry_instance )
1515 end
1616
1717 # @return [Boolean] Whether there is a context to return to once
@@ -55,7 +55,7 @@ def frame_info(b, verbose = false)
5555 sig = meth_obj ? "<#{ signature_with_owner ( meth_obj ) } >" : ""
5656
5757 self_clipped = "#{ Pry . view_clip ( b_self ) } "
58- path = "@ #{ b . eval ( '__FILE__' ) } : #{ b . eval ( '__LINE__' ) } "
58+ path = '@ ' + b . source_location . join ( ':' )
5959
6060 if !verbose
6161 "#{ type } #{ desc } #{ sig } "
@@ -292,7 +292,7 @@ def process
292292 output . puts "No caller stack available!"
293293 else
294294 content = ""
295- content << "\n #{ text . bold ( "Showing all accessible frames in stack (#{ frame_manager . bindings . size } in total):" ) } \n --\n "
295+ content << "\n #{ bold ( "Showing all accessible frames in stack (#{ frame_manager . bindings . size } in total):" ) } \n --\n "
296296
297297 base_frame_index , frames = selected_stack_frames
298298 frames . each_with_index do |b , index |
0 commit comments