Module: Byebug::Skipper
- Extended by:
- Skipper
- Included in:
- Skipper
- Defined in:
- lib/byebug/skipper/version.rb,
lib/byebug/skipper/ups_command.rb,
lib/byebug/skipper/downs_command.rb,
lib/byebug/skipper/steps_command.rb,
lib/byebug/skipper/finishs_command.rb,
lib/byebug/skipper/skip_bang_command.rb,
lib/byebug/skipper/comment_line_above.rb,
lib/byebug/skipper.rb
Defined Under Namespace
Modules: CommentLineAbove, Pry
Classes: DownsCommand, FinishsCommand, SkipBangCommand, StepsCommand, UpsCommand
Constant Summary
collapse
- VERSION =
'0.4.0'
- DEFAULT_SKIP_MATCHERS =
[
%r{/ruby/[^/]+(/bundler)?/gems/}, %r{/ruby-[^/]+/gems/}, %r{/ruby-[^/]+/lib/ruby/[^/]+/}, ].freeze
Instance Method Summary
collapse
Instance Method Details
#skip?(location) ⇒ Boolean
20
21
22
|
# File 'lib/byebug/skipper.rb', line 20
def skip?(location)
skip_matchers.any? { |sm| sm === location }
end
|
#skip_matchers ⇒ Object
12
13
14
|
# File 'lib/byebug/skipper.rb', line 12
def skip_matchers
@skip_matchers ||= DEFAULT_SKIP_MATCHERS
end
|
#skip_matchers=(matchers) ⇒ Object
16
17
18
|
# File 'lib/byebug/skipper.rb', line 16
def skip_matchers=(matchers)
@skip_matchers = matchers
end
|