class Skiptrace::Rubinius::InternalLocationFilter

Filters internal Rubinius locations.

There are a couple of reasons why we wanna filter out the locations.

We do that all that so we can align the bindings with the backtraces entries.

Public Class Methods

new(locations) click to toggle source
# File lib/skiptrace/internal/rubinius.rb, line 18
def initialize(locations)
  @locations = locations
end

Public Instance Methods

filter() click to toggle source
# File lib/skiptrace/internal/rubinius.rb, line 22
def filter
  @locations.reject do |location|
    location.file.start_with?('kernel/delta/kernel.rb') ||
      location.file == __FILE__ ||
      location.variables.nil?
  end
end