Sha256: 27cf1b09674d27be26ac7d26b09c53fd7f829fd7eaa1264268473778212358fc

Contents?: true

Size: 724 Bytes

Versions: 11

Compression:

Stored size: 724 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
contrast-agent-4.4.1 lib/contrast/extension/module.rb
contrast-agent-4.4.0 lib/contrast/extension/module.rb
contrast-agent-4.3.2 lib/contrast/extension/module.rb
contrast-agent-4.3.1 lib/contrast/extension/module.rb
contrast-agent-4.3.0 lib/contrast/extension/module.rb
contrast-agent-4.2.0 lib/contrast/extension/module.rb
contrast-agent-4.1.0 lib/contrast/extension/module.rb
contrast-agent-4.0.0 lib/contrast/extension/module.rb
contrast-agent-3.16.0 lib/contrast/extension/module.rb
contrast-agent-3.15.0 lib/contrast/extension/module.rb
contrast-agent-3.14.0 lib/contrast/extension/module.rb