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