Sha256: a158b2dc3ef2f058ecb77aa49300b2c597d60af17a085d8b8ae25846014c676b
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
module Sentry module CustomInspection def inspect attr_strings = (instance_variables - self.class::SKIP_INSPECTION_ATTRIBUTES).each_with_object([]) do |attr, result| value = instance_variable_get(attr) result << "#{attr}=#{value.inspect}" if value end "#<#{self.class.name} #{attr_strings.join(", ")}>" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sentry-ruby-core-4.8.0 | lib/sentry/utils/custom_inspection.rb |