# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/utils/object_share' # Some developers override various methods on Module, which can often involve # changing expected method parity/behavior which in turn prevents us from being # able to reliably use affected methods. Let's alias these method so that we # always have access to them. class Module alias_method :cs__name, :name alias_method :cs__constants, :constants alias_method :cs__const_defined?, :const_defined? alias_method :cs__const_get, :const_get alias_method :cs__const_set, :const_set end