Module: IRB::Debug::SkipPathHelperForIRB

Defined in:
lib/irb/debug.rb

Instance Method Summary collapse

Instance Method Details

#skip_internal_path?(path) ⇒ Boolean

Returns:

  • (Boolean)


91
92
93
94
# File 'lib/irb/debug.rb', line 91

def skip_internal_path?(path)
  # The latter can be removed once https://github.com/ruby/debug/issues/866 is resolved
  super || path.match?(IRB_DIR) || path.match?('<internal:prelude>')
end