Sha256: b365476f1ec43d4c23674ce5c287bc71364b90f3681b510f8b235e6dac9ad43d
Contents?: true
Size: 309 Bytes
Versions: 3
Compression:
Stored size: 309 Bytes
Contents
module Mocktail class CleansBacktrace BASE_PATH = (Pathname.new(__FILE__) + "../../..").to_s def clean(error) raise error rescue => e e.tap do |e| e.set_backtrace(e.backtrace.drop_while { |frame| frame.start_with?(BASE_PATH) }) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems