Class: Byebug::Skipper::UpsCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::Skipper::UpsCommand
- Includes:
- Helpers::FrameHelper
- Defined in:
- lib/byebug/skipper/ups_command.rb
Overview
this class is partially copy/pasted from Byebug::UpCommand
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.description ⇒ Object
16 17 18 |
# File 'lib/byebug/skipper/ups_command.rb', line 16 def self.description short_description end |
.regexp ⇒ Object
8 9 10 |
# File 'lib/byebug/skipper/ups_command.rb', line 8 def self.regexp /^ \s* ups \s* $/x end |
.short_description ⇒ Object
12 13 14 |
# File 'lib/byebug/skipper/ups_command.rb', line 12 def self.short_description "Same as `up` but skips garbage frames, e.g. from gems" end |
Instance Method Details
#execute ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/byebug/skipper/ups_command.rb', line 20 def execute loop do break if out_of_bounds?(context.frame.pos + 1) jump_frames(1) break if not Byebug::Skipper.skip?(context.location) end Byebug::ListCommand.new(processor).execute if Byebug::Setting[:autolist] end |