Sha256: 0dd141d34791b2531ff5be6405f798a5552fa9fd321ef889c4b25dfea5f9f4ff

Contents?: true

Size: 682 Bytes

Versions: 18

Compression:

Stored size: 682 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/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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
contrast-agent-7.6.1 lib/contrast/extension/module.rb
contrast-agent-7.6.0 lib/contrast/extension/module.rb
contrast-agent-7.5.0 lib/contrast/extension/module.rb
contrast-agent-7.4.1 lib/contrast/extension/module.rb
contrast-agent-7.4.0 lib/contrast/extension/module.rb
contrast-agent-7.3.2 lib/contrast/extension/module.rb
contrast-agent-7.3.1 lib/contrast/extension/module.rb
contrast-agent-7.3.0 lib/contrast/extension/module.rb
contrast-agent-7.2.0 lib/contrast/extension/module.rb
contrast-agent-7.1.0 lib/contrast/extension/module.rb
contrast-agent-7.0.0 lib/contrast/extension/module.rb
contrast-agent-6.15.3 lib/contrast/extension/module.rb
contrast-agent-6.15.2 lib/contrast/extension/module.rb
contrast-agent-6.15.1 lib/contrast/extension/module.rb
contrast-agent-6.15.0 lib/contrast/extension/module.rb
contrast-agent-6.14.0 lib/contrast/extension/module.rb
contrast-agent-6.13.0 lib/contrast/extension/module.rb
contrast-agent-6.12.0 lib/contrast/extension/module.rb