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.5.0'
- DEFAULT_SKIP_MATCHERS =
[
%r{/ruby/[^/]+(/bundler)?/gems/}, %r{/ruby-[^/]+/gems/}, %r{/ruby-[^/]+/lib/ruby/[^/]+/}, %r{/versions/[^/]+/lib/ruby/gems/}, ].freeze
Instance Method Summary
collapse
Instance Method Details
#skip?(location) ⇒ Boolean
21
22
23
|
# File 'lib/byebug/skipper.rb', line 21
def skip?(location)
skip_matchers.any? { |sm| sm === location }
end
|
#skip_matchers ⇒ Object
13
14
15
|
# File 'lib/byebug/skipper.rb', line 13
def skip_matchers
@skip_matchers ||= DEFAULT_SKIP_MATCHERS
end
|
#skip_matchers=(matchers) ⇒ Object
17
18
19
|
# File 'lib/byebug/skipper.rb', line 17
def skip_matchers=(matchers)
@skip_matchers = matchers
end
|