Sha256: 1d3a60ca0ac01be44c3dfa1236e7079745e2e5316ef9164179be732b0bf65f43

Contents?: true

Size: 735 Bytes

Versions: 12

Compression:

Stored size: 735 Bytes

Contents

# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

cs__scoped_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

12 entries across 12 versions & 1 rubygems

Version Path
contrast-agent-3.13.2 lib/contrast/extension/module.rb
contrast-agent-3.13.1 lib/contrast/extension/module.rb
contrast-agent-3.13.0 lib/contrast/extension/module.rb
contrast-agent-3.12.2 lib/contrast/extension/module.rb
contrast-agent-3.12.1 lib/contrast/extension/module.rb
contrast-agent-3.12.0 lib/contrast/extension/module.rb
contrast-agent-3.11.0 lib/contrast/extensions/ruby_core/module.rb
contrast-agent-3.10.2 lib/contrast/extensions/ruby_core/module.rb
contrast-agent-3.10.1 lib/contrast/extensions/ruby_core/module.rb
contrast-agent-3.10.0 lib/contrast/extensions/ruby_core/module.rb
contrast-agent-3.9.1 lib/contrast/extensions/ruby_core/module.rb
contrast-agent-3.9.0 lib/contrast/extensions/ruby_core/module.rb