Sha256: 68b29f7e8f7cc7f363c6a4b4f4eef93f93c477cd53991cde9908e8a352721a30
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/agent/assess/tracker' # Our patch of the Object#freeze method, allowing any Object we track to # function with our Contrast::Agent::Assess::Finalizers::Hash class Object alias_method :cs__patched_object_freeze, :freeze # Applies the the freeze patch and handles the pre-finalizes the object. def freeze Contrast::Agent::Assess::Tracker.pre_freeze(self) cs__patched_object_freeze end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
contrast-agent-7.6.1 | lib/contrast/agent/assess/finalizers/freeze.rb |
contrast-agent-7.6.0 | lib/contrast/agent/assess/finalizers/freeze.rb |