lib/raven/backtrace.rb in sentry-raven-0.12.2 vs lib/raven/backtrace.rb in sentry-raven-0.12.3
- old
+ new
@@ -59,11 +59,11 @@
def ==(other)
to_s == other.to_s
end
def inspect
- "<Line:#{to_s}>"
+ "<Line:#{self}>"
end
private
attr_writer :file, :number, :method
@@ -75,19 +75,19 @@
def self.parse(ruby_backtrace, opts = {})
ruby_lines = split_multiline_backtrace(ruby_backtrace)
filters = opts[:filters] || []
filtered_lines = ruby_lines.to_a.map do |line|
- filters.reduce(line) do |line, proc|
- proc.call(line)
+ filters.reduce(line) do |nested_line, proc|
+ proc.call(nested_line)
end
end.compact
lines = filtered_lines.map do |unparsed_line|
Line.parse(unparsed_line)
end
- instance = new(lines)
+ new(lines)
end
def initialize(lines)
self.lines = lines
end