Sha256: 4f3723c7eecc275203f5bca4f56b029bacfb8d14218fa6de9d6260c37c3eb69f

Contents?: true

Size: 724 Bytes

Versions: 13

Compression:

Stored size: 724 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/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
  alias_method :cs__autoload?, :autoload?
end

Version data entries

13 entries across 13 versions & 1 rubygems

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