class Byebug::Skipper::SkipBangCommand
Public Class Methods
description()
click to toggle source
# File lib/byebug/skipper/skip_bang_command.rb, line 11 def self.description short_description end
regexp()
click to toggle source
# File lib/byebug/skipper/skip_bang_command.rb, line 3 def self.regexp /^ \s* skip! \s* $/x end
short_description()
click to toggle source
# File lib/byebug/skipper/skip_bang_command.rb, line 7 def self.short_description "Same as `skip` but also comments out the line before the current one (where `byebug` or `binding.pry` usually is)" end
Public Instance Methods
initialize_attributes()
click to toggle source
This method gets run once when the command starts. After that, `#execute` gets called repeatedly from different locations, so we can't use it without adding random commented lines everywhere.
Calls superclass method
# File lib/byebug/skipper/skip_bang_command.rb, line 18 def initialize_attributes CommentLineAbove.(context.location) super end