Sha256: b08bf6d496856bb845a5e1108bde7be5a76073845745fd55975d83cb560eec5f

Contents?: true

Size: 499 Bytes

Versions: 13

Compression:

Stored size: 499 Bytes

Contents

# Copyright (c) 2021 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

  def freeze
    Contrast::Agent::Assess::Tracker.pre_freeze(self)
    cs__patched_object_freeze
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
contrast-agent-4.14.1 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.14.0 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.13.1 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.13.0 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.12.0 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.11.0 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.10.0 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.9.1 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.9.0 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.8.0 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.7.0 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.6.0 lib/contrast/agent/assess/finalizers/freeze.rb
contrast-agent-4.5.0 lib/contrast/agent/assess/finalizers/freeze.rb