Sha256: 0c21b15c2eda8d417bf27f02fa2655cf0ef8c8fe9a0afe00458f5c604b138306
Contents?: true
Size: 1007 Bytes
Versions: 18
Compression:
Stored size: 1007 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/patching/policy/policy_node' module Contrast module Agent module Deadzone module Policy # This class functions to translate our policy.json into an actionable Ruby object, allowing for dynamic # patching over hardcoded patching, specifically for those methods in which other Contrast operations should # not apply. class DeadzoneNode < Contrast::Agent::Patching::Policy::PolicyNode def node_class 'Deadzone' end def feature 'Deadzone' end # Deadzone means place the code inside of the contrast scope so that none of our code executes. As such, all # DeadZone nodes have that as their method scope. def method_scope :contrast end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems